Module CorsixTH.CorsixTH.Lua.entity
Abstraction for visible gameplay things which sit somewhere on the map.
Functions
| Entity:afterLoad (old, new) | Stub to be extended in subclasses, if needed. |
| Entity:eraseObject () | Stub to be extended in subclasses, if needed. |
| Entity:notifyNewObject (id) | Notify the entity of a new object. |
| Entity:notifyNewRoom (room) | Notify the entity that a new room was built. |
Functions
- Entity:afterLoad (old, new)
-
Stub to be extended in subclasses, if needed.
Parameters:
- old luacheck
- new ignore 212 keep args for child class
- Entity:eraseObject ()
- Stub to be extended in subclasses, if needed.
- Entity:notifyNewObject (id)
-
Notify the entity of a new object.
Parameters:
- id Name of the new object. TODO Currently only used for benches placed nearby. TODO Maybe also pass the object tile coordinates?
- Entity:notifyNewRoom (room)
-
Notify the entity that a new room was built.
Parameters:
- room (Room) The new room.