Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
world.c
Go to the documentation of this file.
1 class World: Managed
2 {
3  //proto private void ~World();
4  //proto private void World();
5 
6  proto void CheckSoundObstruction(EntityAI source, bool inSource, out float obstruction, out float occlusion);
7 
8  proto native void GetPlayerList(out array<Man> players);
9 
14  proto native void SetTimeMultiplier(float timeMultiplier);
15 
28  proto void GetDate(out int year, out int month, out int day, out int hour, out int minute);
29 
46  proto native void SetDate(int year, int month, int day, int hour, int minute);
47  proto native float GetLatitude();
48  proto native float GetLongitude();
49  proto native float GetMoonIntensity();
50  proto native float GetSunOrMoon();
51  proto native bool IsNight();
52 
53  proto native float GetEyeAccom();
54  proto native void SetEyeAccom(float eyeAccom);
55 
56  proto native void StartFpsBenchmark(int sectorsCount, float preloadDistance, float fpsLimitRed, float fpsLimitGreen, float fpsLimitBlue, float minX, float minY, float maxX, float maxY);
57  proto native void StartFpsBenchmarkWithMask(float preloadDistance, float fpsLimitRed, float fpsLimitGreen, float fpsLimitBlue);
58  proto native void StartFpsBenchmarkViews(string xmlFileName, float preloadDistance);
59  proto native void SetBuldozerWaterEnabled(bool enable);
64  proto native void SetPreferredViewDistance(float distance);
65 
66  proto native void SetViewDistance(float distance);
67 
68  proto native void SetObjectViewDistance(float distance);
69 
70  proto native void SetExplicitVolumeFactor_EnvSounds2D(float factor, float fadeTime);
71 
72 
78  proto native void AddEnvShootingSource(vector position, float shootingValDecrease);
79 
80  proto int GetWorldSize();
81 
93  proto void GetGridCoords(vector pos, float gridSize, out int gridX, out int gridZ);
94 
98  proto native void LoadNewLightingCfg(string path);
99 
103  proto native void LoadUserLightingCfg(string path, string name);
104 
108  proto native void SetUserLightingLerp(float val);
109 
110 
114  proto native AIWorld GetAIWorld();
115 
120  proto native void UpdatePathgraphDoorByAnimationSourceName(notnull Object object, string animSourceName);
121 
122  proto native void MarkObjectForPathgraphUpdate(Object object);
123  proto native void ProcessMarkedObjectsForPathgraphUpdate();
124 
125 
138  proto native Material GetMaterial(string materialName);
139 
147  proto native void SetCameraPostProcessEffect(int cam, int ppEffect, string effectName, string materialName);
148 
149  void SetAperture(float invDiameter)
150  {
151  if (invDiameter <= 0)
152  {
153  SetEyeAccom(-1);
154  }
155  else
156  {
157  float apertureArea = 1.0 / invDiameter;
158  SetEyeAccom(apertureArea * apertureArea);
159  }
160  }
161 
165  proto native bool Is3rdPersonDisabled();
166 
170  proto native bool IsCrosshairDisabled();
171 
175  proto native bool IsMouseAndKeyboardEnabledOnServer();
176 
180  proto native int GetPingWarningThreshold();
181 
185  proto native int GetPingCriticalThreshold();
186 
190  proto native float GetServerFpsWarningThreshold();
191 
195  proto native float GetServerFpsCriticalThreshold();
196 
201  proto native void DisableTransmitVoN(bool disable);
202 
208  proto native bool DisableReceiveVoN(bool disable);
209 
213  proto native bool IsDisabledTransmitingVoN();
214 
218  proto native bool IsDisabledReceivingVoN();
219 
225  proto void SetVoiceOn(bool listening, bool toggled = false);
226 
236  proto native void FlattenGrassSphere(float x, float z, float radius, float centerLerp01, float timeDown01, float maxHeight01);
237 
250  proto native void FlattenGrassEllipse(float x, float z, float sideX, float sideZ, float offset, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01);
251 
262  proto native void FlattenGrassBox(float x, float z, float side, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01);
263 
276  proto native void FlattenGrassRect(float x, float z, float sideX, float sideZ, float offset, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01);
277 };
Managed
TODO doc.
Definition: enscript.c:117
World
Definition: world.c:1
vector
Definition: enconvert.c:105
Material
Definition: proto.c:267
Object
Definition: objecttyped.c:1
array< Man >
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
x
Icon x
AIWorld
Definition: aiworld.c:70
EntityAI
Definition: building.c:5
path
string path
Definition: optionselectormultistate.c:135