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);
53 proto native
void Activate(IEntity owner);
67 protected void GenericComponent(IEntityComponentSource src, IEntity ent);
70class GenericComponentClass
72 bool DependsOn(
typename otherClass,
TypeID otherTypeID) {}
86class ScriptComponent : GenericComponent
95 protected void EOnTouch(IEntity owner,
int extra);
103 protected void EOnInit(IEntity owner,
int extra);
113 protected void EOnExtra(IEntity owner,
int extra);
121 protected void EOnNotVisible(IEntity owner,
int extra);
129 protected void EOnVisible(IEntity owner,
int extra);
137 protected void EOnFrame(IEntity owner,
float timeSlice);
145 protected void EOnPostFrame(IEntity owner,
int extra);
153 protected void EOnAnimEvent(IEntity owner, AnimEvent extra);
161 protected void EOnSoundEvent(IEntity owner, SoundEvent 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);
202 protected void EOnContact(IEntity owner, Contact 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
251 proto native
int GetEventNames(out array<string> events);
253 proto native
int GetSignalNames(out array<string> signals);
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)
int[] TypeID
script representation for C++ RTTI types