The buildings can be either player-built or part the central building defining the role of a zone.
Variables
Methods
destroy(manualDestroy:Bool = false):Void
[HostOnly] Destroy the building, with sound and visual effect.
Parameters:
manualDestroy | [Optional] True to destroy the building as it was destroyed by the owner, recovering resources and other things. |
---|
isActive():Bool
Is the building active. Used for rare toggleable buildings like the Gate of Muspell or Ancient Graveyard.
Returns:
Bool
setActive(b:Bool):Void
[HostOnly] Set the building active. Used for rare toggleable buildings like the Gate of Muspell or Ancient Graveyard. A building is considered active by default.
Parameters:
null | b |
---|
setOreAmount(amount:Float):Bool
[HostOnly] Allow to set the ore amount if the building is a natural ore deposit such as Stone or Iron.
Parameters:
amount |
---|
Returns:
Bool true if the building is an ore deposit, else false.