Vogon.new

From GiderosMobile
Revision as of 15:32, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: 2042.11
Class: Vogon

Description

Create a new Vogon
<syntaxhighlight lang="lua">local vogon = Vogon.new()</source>

Examples

Create an administration department of Vogons
<syntaxhighlight lang="lua">local admin_vogons = {} for i = 1, 42 do

 admin_vogons[#admin_vogons + 1] = Vogon.new()

end </source>

Create a string quarter of Vogons
<syntaxhighlight lang="lua">local musical_vogons = {} for i = 1, 4 do

 musical_vogons[#musical_vogons + 1] = Vogon.new()

end </source>

Parameters

none

Return values

vogon: (Vogon) new Vogon object