16 private void ~GenericComponent();
58 proto external
int FindComponents(
typename typeName, notnull array<GenericComponent> outComponents);
SCR_CharacterSoundComponentClass GetComponentData()
event void _WB_SetTransform(IEntity owner, inout vector mat[4], IEntitySource src)
Editor changed entity transformation matrix source. Do not call editor API here!
event void _WB_OnCreate(IEntity owner, IEntitySource src)
Called after entity gets created in map during editing or when deleted entity gets restored after und...
void DisconnectFromDiagSystem(IEntity owner)
proto external bool IsActive()
proto external int FindComponents(typename typeName, notnull array< GenericComponent > outComponents)
event array< ref ParamEnum > _WB_GetUserEnums(string varName, IEntity owner, IEntityComponentSource src)
Possibility to get variable value choices dynamically.
event bool _WB_EnablePhysics(IEntity owner, IEntitySource src, bool physics)
Prepare to edit transformation using physics simulation. Return previous status. Do not call editor A...
proto external int ClearEventMask(notnull IEntity owner, int mask)
event void _WB_OnRename(IEntity owner, IEntitySource src, string oldName)
Entity has been renamed. You can use editor API here and do some additional edit actions which will b...
event bool _WB_CanSelect(IEntity owner, IEntitySource src)
Editor needs to know whether this entity can be selected in scene window or not.
event bool _WB_CanDelete(IEntity owner, IEntitySource src)
Editor needs to know if this entity can be deleted. Do not call editor API here!
void OnTransformResetImpl(TransformResetParams params)
event int _WB_GetAfterWorldUpdateSpecs(IEntity owner, IEntitySource src)
Called after _WB_OnInit or also later when editor needs to know whether _WB_AfterWorldUpdate needs to...
proto external int SetEventMask(notnull IEntity owner, int mask)
proto external int GetEventMask()
event void _WB_OnContextMenu(IEntity owner, int id)
User has chosen any of your menu item from editor's "Component" menu which you have recently provided...
proto external GenericComponent FindComponent(typename typeName)
void Rpc(func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL)
event void _WB_OnInit(IEntity owner, inout vector mat[4], IEntitySource src)
Called always after entity creation. It's purpose is to prepare entity for editing....
proto external void OnTransformReset(bool isCorrection=false, vector newVelocity=vector.Zero)
proto external void Activate(IEntity owner)
event void _WB_AfterWorldUpdate(IEntity owner, float timeSlice)
Called after updating world in Workbench. The entity must be selected. You can use editor API here an...
void ConnectToDiagSystem(IEntity owner)
event bool _WB_IsTraceable(IEntity owner, IEntitySource src)
Editor needs to know whether this entity is traceable at selecting entities in scene.
event array< ref WB_UIMenuItem > _WB_GetContextMenuItems(IEntity owner)
An opportunity to append items into editor's "Component" context menu. Do not call editor API here!
event bool _WB_OnKeyChanged(IEntity owner, BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent)
Any property value has been changed. You can use editor API here and do some additional edit actions ...
event void _WB_OnDelete(IEntity owner, IEntitySource src)
Entity is going to be deleted. You can use editor API here and do some additional edit actions which ...
event void _WB_SetExtraVisualiser(IEntity owner, EntityVisualizerType type, IEntitySource src)
If entity needs to have a special visualizer instead of default one, here is the place where you can ...
event bool _WB_CanCopy(IEntity owner, IEntitySource src)
Editor needs to know if this entity can be copied. Do not call editor API here!
event bool _WB_OnPhysSimulPlacementBegin(IEntity owner, IEntitySource src)
Does this entity support editing transformation using physics simulation? Do not call editor API here...
proto external void Deactivate(IEntity owner)
event bool _WB_GetKeySpaceMatrixWorld(IEntity owner, BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent, out vector transformSpaceWorld[4])
Some "coords" or "angles" vector property is being to be edited. Entity can provide a world matrix wh...
event bool _WB_CanRename(IEntity owner, IEntitySource src)
Editor needs to know if this entity can be renamed. Do not call editor API here!
event void _WB_OnKeyDown(IEntity owner, int keyCode)
User pressed a key and this entity is main member of entity selection. You can use editor API here an...
event void _WB_OnParentChange(IEntity owner, IEntitySource src, IEntitySource prevParentSrc)
Parent entity has been changed ( it's available through src->GetParent() ). prevParentSrc is a pointe...
EntityVisualizerType
Game editor entity visualizer type.