Difference between revisions of "Vogon.new"
From GiderosMobile
Line 8: | Line 8: | ||
<source lang="lua">local vogon = Vogon.new()</source> | <source lang="lua">local vogon = Vogon.new()</source> | ||
+ | === <translate>Parameters</translate> === | ||
+ | ''<translate>none</translate>''<br/> | ||
+ | === <translate>Return values</translate> === | ||
+ | '''vogon: ''' ''(Vogon)'' <translate>new Vogon object</translate><br/> | ||
=== <translate>Examples</translate> === | === <translate>Examples</translate> === | ||
Line 23: | Line 27: | ||
end | end | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 11:25, 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