Difference between revisions of "Vogon.new"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' 2042.11<br/> '''<translate>Class</translate>:''' Vogon<br/> === <translate>...")
 
Line 6: Line 6:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Create a new Vogon</translate><br/>
 
<translate>Create a new Vogon</translate><br/>
<source lang="lua">Vogon.new()</source>
+
<source lang="lua">local vogon = Vogon.new()</source>
 +
 
 +
=== <translate>Example</translate> ===
 +
 
 +
'''Create an administration department of Vogons'''<br/>
 +
<source lang="lua">local admin_vogons = {}
 +
for i = 1, 42 do
 +
  admin_vogons[#vogons + 1] = Vogon.new()
 +
end
 +
</source>
  
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
''<translate>none</translate>''<br/>
 
''<translate>none</translate>''<br/>
 +
=== <translate>Return values</translate> ===
 +
'''vogon: ''' ''(Vogon)''  <translate>new Vogon object</translate><br/>

Revision as of 11:00, 15 September 2018


Available since: 2042.11
Class: Vogon

Description

Create a new Vogon

local vogon = Vogon.new()

Example

Create an administration department of Vogons

local admin_vogons = {}
for i = 1, 42 do
  admin_vogons[#vogons + 1] = Vogon.new()
end

Parameters

none

Return values

vogon: (Vogon) new Vogon object