Module Game
Game constants
See also:
Tables
- Game
- Game specific information
Tables
Game
Game specific information
Fields:
-
maxUnits
number -
maxTeams
number -
maxPlayers
number -
squareSize
number Divide Game.mapSizeX or Game.mapSizeZ by this to get engine's "mapDims" coordinates. The resolution of height, yard and type maps. -
metalMapSquareSize
number The resolution of metalmap (for use in API such as Spring.GetMetalAmount etc.) -
gameSpeed
number -
startPosType
number -
ghostedBuildings
bool -
mapChecksum
string -
modChecksum
string -
mapDamage
bool -
mapName
string -
mapDescription
string = string Game.mapHumanName -
mapHardness
number -
mapX
number -
mapY
number -
mapSizeX
number in worldspace/opengl coords. Divide by Game.squareSize to get engine's "mapDims" coordinates -
mapSizeZ
number in worldspace/opengl coords. Divide by Game.squareSize to get engine's "mapDims" coordinates -
gravity
number -
tidal
number -
windMin
number -
windMax
number -
extractorRadius
number -
waterDamage
number -
envDamageTypes
table Containing {def}IDs of environmental-damage sources -
gameName
string -
gameShortName
string -
gameVersion
string -
gameMutator
string -
gameDesc
string -
requireSonarUnderWater
bool -
transportAir
number -
transportShip
number -
transportHover
number -
transportGround
number -
fireAtKilled
number -
fireAtCrashing
number -
constructionDecay
bool -
reclaimAllowEnemies
bool -
reclaimAllowAllies
bool -
constructionDecayTime
number -
constructionDecaySpeed
number -
multiReclaim
number -
reclaimMethod
number -
reclaimUnitMethod
number -
reclaimUnitEnergyCostFactor
number -
reclaimUnitEfficiency
number -
reclaimFeatureEnergyCostFactor
number -
repairEnergyCostFactor
number -
resurrectEnergyCostFactor
number -
captureEnergyCostFactor
number -
springCategories
tableexample: { ["vtol"] = 0, ["special"] = 1, ["noweapon"] = 2, ["notair"] = 3, ["notsub"] = 4, ["all"] = 5, ["weapon"] = 6, ["notship"] = 7, ["notland"] = 8, ["mobile"] = 9, ["kbot"] = 10, ["antigator"] = 11, ["tank"] = 12, ["plant"] = 13, ["ship"] = 14, ["antiemg"] = 15, ["antilaser"] = 16, ["antiflame"] = 17, ["underwater"] = 18, ["hover"] = 19, ["phib"] = 20, ["constr"] = 21, ["strategic"] = 22, ["commander"] = 23, ["paral"] = 24, ["jam"] = 25, ["mine"] = 26, ["kamikaze"] = 27, ["minelayer"] = 28, ["notstructure"] = 29, ["air"] = 30 }
-
armorTypes
table(bidirectional)
example: { [1] = amphibious, [2] = anniddm, [3] = antibomber, [4] = antifighter, [5] = antiraider, [6] = atl, [7] = blackhydra, [8] = bombers, [9] = commanders, [10] = crawlingbombs, ... ["amphibious"] = 1, ["anniddm"] = 2, ["antibomber"] = 3 ["antifighter"] = 4, ["antiraider"] = 5, ["atl"] = 6 ["blackhydra"] = 7, ["bombers"] = 8, ["commanders"] = 9 ["crawlingbombs"]= 10, ... }