Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
Inheritance diagram for IEntity:
Managed

Protected Member Functions

Event methods

Event method stubs. Reimplement these in inherited entities to receive event calls

void EOnTouch (IEntity other, int extra)
 EntityEvent.TOUCH.
 
void EOnInit (IEntity other, int extra)
 EntityEvent.INIT.
 
void EOnExtra (IEntity other, int extra)
 EntityEvent.EXTRA.
 
void EOnNotVisible (IEntity other, int extra)
 EntityEvent.NOTVISIBLE.
 
void EOnFrame (IEntity other, float timeSlice)
 EntityEvent.FRAME.
 
int EOnVisible (IEntity other, int extra)
 EntityEvent.VISIBLE.
 
void EOnPostFrame (IEntity other, int extra)
 EntityEvent.POSTFRAME.
 
void EOnWorldProcess (IEntity other, int extra)
 EntityEvent.WORLDPROCESS.
 
void EOnAnimEvent (IEntity other, AnimEvent extra)
 EntityEvent.ANIMEVENT.
 
void EOnSoundEvent (IEntity other, SoundEvent extra)
 EntityEvent.SOUNDEVENT.
 
void EOnSimulate (IEntity other, float dt)
 EntityEvent.SIMULATE.
 
void EOnPostSimulate (IEntity other, float timeSlice)
 EntityEvent.POSTSIMULATE.
 
void EOnJointBreak (IEntity other, int extra)
 EntityEvent.JOINTBREAK.
 
void EOnPhysicsMove (IEntity other, int extra)
 EntityEvent.PHYSICSMOVE.
 
void EOnContact (IEntity other, Contact extra)
 EntityEvent.CONTACT.
 
void EOnUser0 (IEntity other, int extra)
 EntityEvent.EV_USER+0.
 
void EOnUser1 (IEntity other, int extra)
 EntityEvent.EV_USER+1.
 
void EOnEnter (IEntity other, int extra)
 EntityEvent.ENTER.
 
void EOnLeave (IEntity other, int extra)
 EntityEvent.LEAVE.
 
void EOnUser4 (IEntity other, int extra)
 EntityEvent.EV_USER+4.
 
void EOnDummy020 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy021 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy022 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy023 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy024 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy025 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy026 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy027 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy028 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy029 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy030 (IEntity other, int extra)
 Placeholder.
 
void EOnDummy031 (IEntity other, int extra)
 Placeholder.
 
Transformation methods

Setting and getting of entity transformation

proto external void GetTransform (out vector mat[])
 Returns transformation of Entity. It returns only so much vectors as array is big.
 
proto external void GetRenderTransform (out vector mat[])
 Returns render transformation of Entity. Must pass in vector array size of 4.
 
proto external void GetLocalTransform (out vector mat[])
 Returns local transformation of Entity. It returns only so much vectors as array is big.
 
proto native external vector GetTransformAxis (int axis)
 Returns one row of Entity transformation matrix.
 
proto native external void SetTransform (vector mat[4])
 Sets entity transformation.
 
proto native external vector GetOrigin ()
 Returns origin of Entity.
 
proto external vector GetLocalPosition ()
 Returns local position of Entity.
 
proto native external vector GetYawPitchRoll ()
 Returns orientation of Entity in world space (Yaw, Pitch, Roll)
 
proto native external vector GetAngles ()
 Same as GetYawPitchRoll, but returns rotation vector around X, Y and Z axis.
 
proto native external vector GetLocalYawPitchRoll ()
 Returns local orientation when it's in hierarchy (Yaw, Pitch, Roll)
 
proto native external vector GetLocalAngles ()
 Same as GetLocalYawPitchRoll, but returns rotation vector around X, Y and Z axis.
 
proto native external void SetYawPitchRoll (vector angles)
 Sets angles for entity (Yaw, Pitch, Roll)
 
proto native external void SetAngles (vector angles)
 Same as SetYawPitchRoll, but sets rotation around X, Y and Z axis.
 
proto native external void SetOrigin (vector orig)
 Sets origin for entity.
 
proto native external float GetScale ()
 
proto native external void SetScale (float scale)
 
proto native external vector VectorToParent (vector vec)
 Transforms local vector to world space.
 
proto native external vector CoordToParent (vector coord)
 Transforms local position to world space.
 
proto native external vector VectorToLocal (vector vec)
 Transforms world space vector to local space.
 
proto native external vector CoordToLocal (vector coord)
 Transforms world space position to local space.
 
Name/ID methods


proto native int GetID ()
 Return unique entity ID.
 
proto native void SetID (int id)
 Set unique entity ID.
 
proto native void SetName (string name)
 
proto native external owned string GetName ()
 
Hierarchy methods

Scene hierarchy management

proto native external bool AddChild (notnull IEntity child, int pivot, bool positionOnly=false)
 Adds child entity to this entity.
 
proto native external bool RemoveChild (notnull IEntity child, bool keepTransform=false)
 Removes child entity from hierarchy.
 
proto native external Physics GetPhysics ()
 
proto native bool IsHierarchyPositionOnly ()
 Returns if the hierarchy component was created with positionOnly.
 
proto native int GetHierarchyPivot ()
 Returns the hierarchy component pivot.
 
proto native IEntity GetParent ()
 Returns pointer to parent Entity in hierarchy.
 
proto native IEntity GetChildren ()
 Returns pointer to first child Entity in hierarchy.
 
proto native IEntity GetSibling ()
 Returns pointer to next child Entity on the same hierarchy.
 
proto external void GetBounds (out vector mins, out vector maxs)
 Returns local bounding box of model on Entity.
 
proto external void GetWorldBounds (out vector mins, out vector maxs)
 Returns quantized world-bound-box of Entity.
 
Simulation/handling properties

Flags that affects simulation and entity handling behavior

proto native external EntityFlags GetFlags ()
 Returns Entity flags.
 
proto native external bool IsFlagSet (EntityFlags flags)
 Test if one or more of specified flags are set.
 
proto native external EntityFlags SetFlags (EntityFlags flags, bool recursively)
 Sets Entity flags. It's OR operation, not rewrite. Returns previous flags.
 
proto native external EntityFlags ClearFlags (EntityFlags flags, bool recursively)
 Clear Entity flags. Returns cleared flags.
 
proto native external EntityEvent GetEventMask ()
 Returns current event mask.
 
proto native external EntityEvent SetEventMask (EntityEvent e)
 Sets event mask.
 
proto native external EntityEvent ClearEventMask (EntityEvent e)
 Clears event mask.
 
proto external volatile void SendEvent (notnull IEntity actor, EntityEvent e, void extra)
 Dynamic event invokation. Parameters are the same as in IEntity::EOnXXXX() methods.
 
Visual component methods

Manipulation with visual component - model, particle effect etc

proto native external void SetObject (vobject object, string options)
 
proto native vobject GetVObject ()
 Returns visual object set to this Entity. No reference is added.
 
proto native external int Animate (float speed, int loop)
 Updates animation (either xob, or particle, whatever)
 
proto native external int AnimateEx (float speed, int loop, out vector lin, out vector ang)
 Updates animation (either xob, or particle, whatever)
 
proto native external int SetCameraMask (int mask)
 Sets visibility mask for cameras, where Entity will be rendered.
 
proto native external void FilterNextTrace ()
 When called, the Entity is excluded from consequent TraceMove/TraceLine.
 
proto native external int Update ()
 

Detailed Description

Internal ancestor of all Entity implementations.

Definition at line 164 of file enentity.c.


The documentation for this class was generated from the following files: