Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
gamelibentities.c
Go to the documentation of this file.
1 //Generic entities from GameLib (script side of c++ classes)
2 
3 #ifdef COMPONENT_SYSTEM
4 class GenericEntity extends IEntity
5 {
6  //native method implemented on c++ side
7  proto native void Show(bool show);
8 
13  proto native GenericComponent FindComponent(typename typeName);
14 
22  proto native void InsertComponent(GenericComponent component);
23 
30  proto native void RemoveComponent(GenericComponent component);
31 
39  proto native void DeleteComponent(GenericComponent component);
40 
41 #ifdef WORKBENCH
42 
45  void _WB_AfterWorldUpdate(float timeSlice) {};
46 #endif
47 }
48 
49 class GenericWorldEntity extends GenericEntity
50 {
51 }
52 
53 class GenericTerrainEntity extends GenericEntity
54 {
55 }
56 
57 class LightEntity extends GenericEntity
58 {
63  proto native external void SetDiffuseColor(int color);
64  proto native external int GetDiffuseColor();
65 
66  proto native external void SetRadius(float radius);
67  proto native external float GetRadius();
68 
73  proto native external void SetConeAngle(float angle);
78  proto native external float GetConeAngle();
79 
80  proto native external void SetCastShadow(bool enable);
81  proto native external bool IsCastShadow(bool enable);
82 }
83 
84 class GenericWorldLightEntity extends GenericEntity
85 {
86 }
87 
88 class GenericWorldFogEntity extends GenericEntity
89 {
90 }
91 
92 class BasicEntity extends GenericEntity
93 {
94 }
95 
96 class WorldEntityClass
97 {
98 }
99 
100 class WorldEntity extends GenericWorldEntity
101 {
102 }
103 
104 class ModelEntity extends BasicEntity
105 {
106 }
107 
108 enum CharacterMovement
109 {
110  MOVEMENTTYPE_IDLE,
111  MOVEMENTTYPE_WALK,
112  MOVEMENTTYPE_RUN,
113  MOVEMENTTYPE_SPRINT
114 };
115 
116 enum CharacterStance
117 {
118  STANCE_ERECT,
119  STANCE_CROUCH,
120  STANCE_PRONE,
121  STANCE_ERECT_RAISED,
122  STANCE_CROUCH_RAISED,
123  STANCE_PRONE_RAISED
124 };
125 
126 class CharacterEntity extends BasicEntity
127 {
128  proto native void Teleport(vector transform[4]);
129  proto native CharacterMovement GetCurrentMovement();
130  proto native CharacterStance GetCurrentStance();
131 }
132 
133 class BasicCamera extends BasicEntity
134 {
135 }
136 
137 class VRHandEntity extends GenericEntity
138 {
139 }
140 
141 #endif
Show
proto native void Show(bool show, bool immedUpdate=true)
component
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
IEntity
Definition: enentity.c:164
vector
Definition: enconvert.c:105
GetRadius
protected float GetRadius()
Definition: radialmenu.c:372