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/>
 
 
----
 
<br/>
 
 
=== <translate>Examples</translate> ===
 
=== <translate>Examples</translate> ===
  
Line 30: Line 23:
 
end
 
end
 
</source>
 
</source>
 +
 +
=== <translate>Parameters</translate> ===
 +
''<translate>none</translate>''<br/>
 +
=== <translate>Return values</translate> ===
 +
'''vogon: ''' ''(Vogon)''  <translate>new Vogon object</translate><br/>

Revision as of 11:41, 15 September 2018


Available since: 2042.11
Class: Vogon

Description

Create a new Vogon

local vogon = Vogon.new()

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

Parameters

none

Return values

vogon: (Vogon) new Vogon object