4typedef int[] IEntityComponentSource;
31 proto native
int GetEventMask();
40 proto native
int SetEventMask(
IEntity owner,
int mask);
48 proto native
int ClearEventMask(
IEntity owner,
int mask);
67 protected void GenericComponent(IEntityComponentSource src,
IEntity ent);
70class GenericComponentClass
72 bool DependsOn(
typename otherClass,
TypeID otherTypeID) {}
86class ScriptComponent : GenericComponent
113 protected void EOnExtra(
IEntity owner,
int extra);
121 protected void EOnNotVisible(
IEntity owner,
int extra);
129 protected void EOnVisible(
IEntity owner,
int extra);
145 protected void EOnPostFrame(
IEntity owner,
int extra);
177 protected void EOnSimulate(
IEntity owner,
float timeslice);
186 protected void EOnJointBreak(
IEntity owner,
int extra);
194 protected void EOnPhysicsMove(
IEntity owner,
int extra);
207 protected void EOnActivate(
IEntity owner);
212 protected void EOnDeactivate(
IEntity owner);
219 protected void OnComponentInsert(
IEntity owner, ScriptComponent other);
226 protected void OnComponentRemove(
IEntity owner, ScriptComponent other);
232 protected void OnDelete(
IEntity owner);
235typedef int[] SoundHandle;
248class BaseSoundComponent : GenericComponent
255 proto native
int GetSignalIndex(
string name);
257 proto native
void SetSignalValueName(
string signal,
float value);
259 proto native
void SetSignalValue(
int index,
float value);
261 proto native SoundHandle
Play(
string name);
263 proto native SoundHandle
Update();
265 proto native
void Terminate(SoundHandle handle);
267 proto native
bool IsPlayed(SoundHandle handle);
269 proto native
bool IsHandleValid(SoundHandle handle);
273 proto native
void SetDebug(
bool value);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
override void EOnTouch(IEntity other, int extra)
override void EOnContact(IEntity other, Contact extra)
override void EOnPostSimulate(IEntity other, float timeSlice)
void Deactivate(bool trigger=true)
override void EOnInit(IEntity other, int extra)
override void EOnFrame(IEntity other, float timeSlice)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
int[] TypeID
script representation for C++ RTTI types