Class l2df.class.component
Component class.
Inherited from l2df.Class.
Info:
- Copyright: Atom-TM 2020
- Author: Abelidze, Kasai
Functions
Component:data(obj) | Get entity's variables proxy table. |
Component:wrap(obj) | Wrap component with entity together. |
Component:added(obj) | Component was added to Entity event. |
Component:removed(obj) | Component was removed from Entity event. |
Functions
Methods- Component:data(obj)
-
Get entity's variables proxy table.
Used for encapsulation of component's variables inside Entity.data.
Parameters:
- obj l2df.class.entity Entity's instance.
Returns:
- Component:wrap(obj)
-
Wrap component with entity together.
Returns proxy table which gives you access to all component's functions without need to pass entity's instance.
Parameters:
- obj l2df.class.entity Entity's instance.
Returns:
- Component:added(obj)
-
Component was added to Entity event.
Parameters:
- obj l2df.class.entity Entity's instance.
- Component:removed(obj)
-
Component was removed from Entity event.
Parameters:
- obj l2df.class.entity Entity's instance.