Difference between revisions of "Vogon"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
  
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate>This is just a test of docs gen from the create-wiki-pages.lua script in the plugins folder of the Gideros
+
<translate>Main Vogon class.
repository using the included vogon.wiki.lua file. From a Lua description file, multiple pages are created
 
which can then be relatively easily copied and pasted into new pages. Run create-wiki-pages.lua without
 
arguments for instructions.<br/>
 
<br/>
 
An example of a new paragraph.
 
 
</translate><br/>
 
</translate><br/>
 
=== <translate>Example</translate> ===
 
=== <translate>Example</translate> ===
  
 
'''Standard use of a Vogon.'''<br/>
 
'''Standard use of a Vogon.'''<br/>
<source lang="lua">require "Vogon"
+
<syntaxhighlight lang="lua">require "Vogon"
 
local vogon = Vogon.new()
 
local vogon = Vogon.new()
 
local poetry = vogon:writePoetry(topic)
 
local poetry = vogon:writePoetry(topic)

Latest revision as of 15:32, 13 July 2023


Supported platforms: Platform android.pngPlatform ios.pngPlatform pc.pngPlatform mac.pngPlatform winrt.pngPlatform win32.pngPlatform html5.png
Available since: 2042.11
Inherits from: Cryptography

Description

Main Vogon class.

Example

Standard use of a Vogon.
<syntaxhighlight lang="lua">require "Vogon" local vogon = Vogon.new() local poetry = vogon:writePoetry(topic) local number_of_deaths = vogon:recitePoetry() </source>

Methods

Vogon.new Create a new Vogon
Vogon:writePoetry Creates abnormally long poem.
Vogon:recitePoetry Recites the third worst poetry in the known universe.

Events

Vogon.DESTRUCTION_IMMINENT
Vogon.DESTRUCTION_COMPLETE

Constants

Vogon.STATUS_SIGN_POSTED
Vogon.STATUS_DESTRUCTION_APPROVED