Entities module for FrameworkZ. Defines and interacts with ENTITY object.
More...
Entities module for FrameworkZ. Defines and interacts with ENTITY object.
Definition at line 13 of file Entities.lua.
◆ EmitSound()
| void EmitSound |
( |
worldObject | , |
|
|
sound | ) |
◆ GetData()
| void GetData |
( |
worldObject | , |
|
|
index | ) |
◆ GetEntityByID()
| table GetEntityByID |
( |
entityID | | ) |
|
Get an entity by their ID.
- Parameters
-
| entityID | string The entity's ID. |
- Returns
- table Entity Object
◆ Initialize()
| string Initialize |
( |
data | , |
|
|
name | ) |
Initialize an entity.
- Parameters
-
| data | table The entity's object data |
| name | string The entity's name (i.e. ID) |
- Returns
- string Entity ID
◆ IsEntity()
Checks if an object is an entity (needs optimization from cached entities).
- Parameters
-
| object | table The object to check. |
- Returns
- boolean Whether or not the object is an entity and its entity ID if it is an entity.
-
integer The entity ID if the object is an entity.
◆ LoadGridsquare()
| void LoadGridsquare |
( |
square | | ) |
|
◆ New()
Create a new entity object.
- Parameters
-
| name | string The entity's name (i.e. ID). |
| square | table The square the entity is on. |
- Returns
- table The entity's object table.
◆ OnGameStart()
◆ OnObjectAboutToBeRemoved()
| void OnObjectAboutToBeRemoved |
( |
object | | ) |
|
◆ OnObjectAdded()
Called when an object is added to the world. Adds the entity to the object's mod data.
- Parameters
-
| object | table The object that was added to the world. |
◆ OnPreFillWorldObjectContextMenu()
| void OnPreFillWorldObjectContextMenu |
( |
player | , |
|
|
context | , |
|
|
worldObjects | , |
|
|
test | ) |
◆ SetData()
| void SetData |
( |
worldObject | , |
|
|
index | , |
|
|
value | ) |
◆ __index
◆ Entities
◆ List
The documentation for this class was generated from the following file: