Difference between revisions of "Vogon.new"
From GiderosMobile
Line 12: | Line 12: | ||
=== <translate>Return values</translate> === | === <translate>Return values</translate> === | ||
'''vogon: ''' ''(Vogon)'' <translate>new Vogon object</translate><br/> | '''vogon: ''' ''(Vogon)'' <translate>new Vogon object</translate><br/> | ||
+ | |||
---- | ---- | ||
− | <br/>=== <translate>Examples</translate> === | + | <br/> |
+ | === <translate>Examples</translate> === | ||
'''Create an administration department of Vogons'''<br/> | '''Create an administration department of Vogons'''<br/> |
Revision as of 11:29, 15 September 2018
Available since: 2042.11
Class: Vogon
Description
Create a new Vogon
local vogon = Vogon.new()
Parameters
none
Return values
vogon: (Vogon) new Vogon object
Examples
Create an administration department of Vogons
local admin_vogons = {}
for i = 1, 42 do
admin_vogons[#admin_vogons + 1] = Vogon.new()
end
Create a string quarter of Vogons
local musical_vogons = {}
for i = 1, 4 do
musical_vogons[#musical_vogons + 1] = Vogon.new()
end