Game Class

Inherits: LuaObject

Properties
actionManager cameraManager dayTime gameInfo gameMode globalWet lightningFlash rainFall season seasonDay seasonName secsInDay secsInSeason selectedObject selectedObjectType skyAmbientColor skyFogColor sunColor temperature workerControlled workerFollow yearTime

Functions
changeMap changeMapEx damageUnderwaterBuildings extrudeLand fsmState isDeactivateMode isGameActive isResourceLimitReached resetWorkerControlled resetWorkerFollow selectObject setGameDeactivate setScriptRainFall setScriptTemperature setWeatherScript startCitizenBowAction startCitizenTreePlantingAction startEarthquake startLightning startTornado startVikingRaid

.actionManager
Type: ActionManager [Read Only]

.cameraManager
Type: CameraManager [Read Only]

.dayTime
Type: number [Read Only]

.gameInfo
Type: GameInfo [Read Only]

.gameMode
Type: number

.globalWet
Type: number [Read Only]

.lightningFlash
Type: number [Read Only]

.rainFall
Type: number [Read Only]

.season
Type: number [Read Only]

.seasonDay
Type: number [Read Only]

.seasonName
Type: string [Read Only]

.secsInDay
Type: number [Read Only]

.secsInSeason
Type: number [Read Only]

.selectedObject
Type: UID

.selectedObjectType
Type: SelectedObjectType [Read Only]

.skyAmbientColor
Type: Vector4 [Read Only]

.skyFogColor
Type: Vector4 [Read Only]

.sunColor
Type: Vector4 [Read Only]

.temperature
Type: number [Read Only]

.workerControlled
Type: Human

.workerFollow
Type: Human

.yearTime
Type: number [Read Only]

changeMap
function changeMap(startInfo, transferData)

changeMapEx
function changeMapEx(startInfo StartGameInfo, transferData string )

damageUnderwaterBuildings
function damageUnderwaterBuildings(amount number )

extrudeLand
function extrudeLand(x number, y number , width number , height number , delta number , min number , max number )

fsmState
function fsmState -> FSM

isDeactivateMode
function isDeactivateMode(reason number ) -> boolean

isGameActive
function isGameActive(ignoreScriptDeactivate boolean ) -> boolean

isResourceLimitReached
function isResourceLimitReached(strType string ) -> boolean

resetWorkerControlled
function resetWorkerControlled

resetWorkerFollow
function resetWorkerFollow

selectObject
function selectObject(selectedObjectUID UID, stats boolean )

setGameDeactivate
function setGameDeactivate(reason number, enable boolean )

setScriptRainFall
function setScriptRainFall(rainFall number )

setScriptTemperature
function setScriptTemperature(temp number )

setWeatherScript
function setWeatherScript(script boolean )

startCitizenBowAction
function startCitizenBowAction(ability Ability, damage number )

startCitizenTreePlantingAction
function startCitizenTreePlantingAction(ability Ability )

startEarthquake
function startEarthquake(pos Vector2, time number , addTime number , strenght number , radius number , destructionMode boolean )

startLightning
function startLightning(pos Vector2 )

startTornado
function startTornado(from Vector2, to Vector2 , time number )

startVikingRaid
function startVikingRaid(vikingCount number )