Cannon

A value shape that methods take or return.

Group
scene
Methods
None
Fields
3

Getting one

scene:cannon()

Fields

FieldTypeDescription
tileWorldPoint?The cannon's tile (the south-west corner of its 3x3 area), or nil while the game holds none.
cannonballsnumberCannonballs loaded.
decayedbooleanWhether it has decayed and must be repaired.

Returned by

MethodReturnsDescription
SceneDomain.cannonCannon?The local player's cannon, read live from the game's vars.