Class l2df.class.component

Last updated 2021-05-28 15:24:22

Component class.

Inherited from l2df.Class.

Info:

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:

Returns:

    table
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:

Returns:

    l2df.class.component
Component:added(obj)
Component was added to Entity event.

Parameters:

Component:removed(obj)
Component was removed from Entity event.

Parameters: