DayZ 1.24
Loading...
Searching...
No Matches
gameLibEntities.c
Go to the documentation of this file.
1//Generic entities from GameLib (script side of c++ classes)
2
3#ifdef COMPONENT_SYSTEM
4class 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
45 void _WB_AfterWorldUpdate(float timeSlice) {};
46#endif
47}
48
49class GenericWorldEntity extends GenericEntity
50{
51}
52
53class GenericTerrainEntity extends GenericEntity
54{
55}
56
57class 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
84class GenericWorldLightEntity extends GenericEntity
85{
86}
87
88class GenericWorldFogEntity extends GenericEntity
89{
90}
91
92class BasicEntity extends GenericEntity
93{
94}
95
96class WorldEntityClass
97{
98}
99
100class WorldEntity extends GenericWorldEntity
101{
102}
103
104class ModelEntity extends BasicEntity
105{
106}
107
108enum CharacterMovement
109{
110 MOVEMENTTYPE_IDLE,
111 MOVEMENTTYPE_WALK,
112 MOVEMENTTYPE_RUN,
113 MOVEMENTTYPE_SPRINT
114};
115
116enum 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
126class CharacterEntity extends BasicEntity
127{
128 proto native void Teleport(vector transform[4]);
129 proto native CharacterMovement GetCurrentMovement();
130 proto native CharacterStance GetCurrentStance();
131}
132
133class BasicCamera extends BasicEntity
134{
135}
136
137class VRHandEntity extends GenericEntity
138{
139}
140
141#endif
void Show()
Definition DayZGame.c:155
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
float GetRadius()
Definition RadialMenu.c:358