Mapdev:set.lua: Difference between revisions

From Spring
Jump to navigationJump to search
mNo edit summary
m added description.
Line 1: Line 1:
= set.lua Reference =
= set.lua Reference =
Download the map [https://github.com/jk3064/Map-Blueprint blueprint]
This file lists all the units, buildings and features that belong to the gaia team, their locations and orientation.


variables are organised as such:
{{tag|name=VariableName|type=type|range=[valid range]|special=Required|default=value
|description=Description}}
If you notice something is incorrect, fix it please!
==Source==
==Source==
The engine source code which reads this file from the map is viewable here: ???
The engine source code which reads this file from the map is viewable here: ???
Line 13: Line 8:
./mapconfig/featureplacer/set.lua
./mapconfig/featureplacer/set.lua


= General Formatting =
= Formatting =
check [http://www.lua.org/docs.html Lua Documentation].
check [http://www.lua.org/docs.html Lua Documentation] for syntax etc.
 
In this wiki page, variables are organised as such:
{{tag|name=VariableName|type=type|range=[valid range]|special=Required|default=value
|description=Description}}


= Data Types =
== Data Types ==


; <span style="color:#00ff88">int</span> : An integer number. eg. 5
; <span style="color:#00ff88">int</span> : An integer number. eg. 5

Revision as of 08:21, 20 December 2012

set.lua Reference

This file lists all the units, buildings and features that belong to the gaia team, their locations and orientation.

Source

The engine source code which reads this file from the map is viewable here: ???

File Location

./mapconfig/featureplacer/set.lua

Formatting

check Lua Documentation for syntax etc.

In this wiki page, variables are organised as such: type VariableName  default: value range: [valid range] Required

Description

Data Types

int
An integer number. eg. 5
string
Text, or more precisely a string of alphanumeric characters. eg "string of characters"

Sections

setcfg

----------------------------------------------------------
-- AutoCreated by FeaturePlacer (by smoth)

local setcfg = {
   unitlist = {
   ...
   { name = 'name', x = 0 , z = 0 , rot = "0"},
   ...
   },
   buildinglist = {
   ...
   { name = 'name', x = 0 , z = 0 , rot = "0"},
   ...
   },
   objectlist = {
   ...
   { name = 'name', x = 0 , z = 0 , rot = "0"},
   ...
   },
}
return setcfg

string name  default: ? 

name of the unit, feature, or building owned by the gaia team

integer x  default: ? 

x position on the map

integer z  default: ? 

z position on the map

string rot  default: ? 

a number which specifies the rotation of the object