DIFF

class GenericEntityCOMPONENT_SYSTEMSource

GenericEntity IEntity Managed

All members, including inherited

Methods 6

proto native void Show(bool show)COMPONENT_SYSTEM
proto native GenericComponent FindComponent(typename typeName)COMPONENT_SYSTEM

Finds first occurance of the coresponding component.

typeName
type of the component
proto native void InsertComponent(GenericComponent component)COMPONENT_SYSTEM

inserts instance of the script component to the entity. Calls OnComponentInsert on all entity's components to inform that this new component was inserted. The new instance have to FindScriptComponents in order to work with them. Calls EOnInit on the component if component sets EV_INIT mask. Calls EOnActivate on the component if the component is active (default)

component
instance
proto native void RemoveComponent(GenericComponent component)COMPONENT_SYSTEM

Removes component from entity. Doesn't delete the entity. Calls EOnDeactivate on the component. Calls OnComponentRemove on all entity's components to inform that this new component was removed.

component
instance
proto native void DeleteComponent(GenericComponent component)COMPONENT_SYSTEM

Removes and deletes component from entity. Calls EOnDeactivate on the component. Calls OnComponentRemove on all entity's components to inform that this new component was removed. Calls OnDelete on the component.

component
instance
void _WB_AfterWorldUpdate(float timeSlice)COMPONENT_SYSTEMWORKBENCH

Called after updating world in Workbench. The entity must be selected.