62class con_set_Entry<const_str, ConSimple>
75 void *
operator new(
size_t size) {
return con_set<const_str, ConSimple>::NewEntry(size); }
77 void operator delete(
void *ptr) { con_set<const_str, ConSimple>::DeleteEntry(ptr); }
82 arc.ArchiveUnsigned(&key);
83 arc.ArchiveObjectPosition((
LightClass*)&value);
86 arc.ArchiveInteger(&num);
89 num = value.NumObjects();
90 arc.ArchiveInteger(&num);
93 const_str& GetKey() {
return key; }
95 void SetKey(
const const_str& newKey) { key = newKey; }
98class World :
public Entity
101 qboolean world_dying;
105 float farplane_distance;
108 qboolean farplane_cull;
109 float skybox_farplane;
110 qboolean render_terrain;
112 float farclip_override;
113 Vector farplane_color_override;
114 float animated_farplane_start;
115 float animated_farplane_end;
116 float animated_farplane_start_z;
117 float animated_farplane_end_z;
118 float animated_farplane_bias_start;
119 float animated_farplane_bias_end;
120 float animated_farplane_bias_start_z;
121 float animated_farplane_bias_end_z;
122 Vector animated_farplane_color_start;
123 Vector animated_farplane_color_end;
124 float animated_farplane_color_start_z;
125 float animated_farplane_color_end_z;
132 float m_fAIVisionDistance;
136 CLASS_PROTOTYPE(World);
141 void AddTargetEntity(SimpleEntity *ent);
142 void AddTargetEntityAt(SimpleEntity *ent,
int index);
143 void RemoveTargetEntity(SimpleEntity *ent);
145 void FreeTargetList();
147 SimpleEntity *GetNextEntity(
str targetname, SimpleEntity *ent);
148 Listener *GetScriptTarget(
str targetname);
149 Listener *GetTarget(
str targetname,
bool quiet);
150 int GetTargetnameIndex(SimpleEntity *ent);
155 void SetFarClipOverride(
Event *ev);
156 void SetFarPlaneColorOverride(
Event *ev);
157 void SetSoundtrack(
Event *ev);
158 void SetGravity(
Event *ev);
159 void SetNextMap(
Event *ev);
160 void SetMessage(
Event *ev);
161 void SetWaterColor(
Event *ev);
162 void SetWaterAlpha(
Event *ev);
163 void SetLavaColor(
Event *ev);
164 void SetLavaAlpha(
Event *ev);
165 void GetFarPlane_Color(
Event *ev);
166 void SetFarPlane_Color(
Event *ev);
167 void GetFarPlaneBias(
Event *ev);
168 void SetFarPlaneBias(
Event *ev);
169 void SetFarPlane_Cull(
Event *ev);
170 void GetSkyboxFarplane(
Event *ev);
171 void SetSkyboxFarplane(
Event *ev);
172 void SetAnimatedFarplaneColor(
Event *ev);
173 void SetAnimatedFarplane(
Event *ev);
174 void SetAnimatedFarplaneBias(
Event *ev);
175 void UpdateAnimatedFarplane(
Event *ev);
176 void GetRenderTerrain(
Event *ev);
177 void SetRenderTerrain(
Event *ev);
178 void GetSkyboxSpeed(
Event *ev);
179 void SetSkyboxSpeed(
Event *ev);
180 void GetFarPlane(
Event *ev);
181 void SetFarPlane(
Event *ev);
182 void SetSkyAlpha(
Event *ev);
183 void SetSkyPortal(
Event *ev);
184 void SetNumArenas(
Event *ev);
185 void SetAIVisionDistance(
Event *ev);
186 void SetNorthYaw(
Event *ev);
187 void UpdateConfigStrings(
void);
188 void UpdateFog(
void);
189 void UpdateSky(
void);
191 void Archive(
Archiver& arc)
override;