]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Define client entity classes
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 26 Apr 2015 07:32:03 +0000 (17:32 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 26 Apr 2015 08:04:40 +0000 (18:04 +1000)
25 files changed:
qcsrc/client/bgmscript.qc
qcsrc/client/bgmscript.qh
qcsrc/client/casings.qc
qcsrc/client/hook.qc
qcsrc/client/hud.qh
qcsrc/client/laser.qc
qcsrc/client/modeleffects.qh
qcsrc/client/noise.qc
qcsrc/client/particles.qh
qcsrc/client/player_skeleton.qc
qcsrc/client/player_skeleton.qh
qcsrc/client/rubble.qh
qcsrc/client/shownames.qh
qcsrc/client/sortlist.qh
qcsrc/client/target_music.qh
qcsrc/client/teamradar.qh
qcsrc/client/tturrets.qc
qcsrc/client/tturrets.qh
qcsrc/client/tuba.qc
qcsrc/client/tuba.qh
qcsrc/client/vehicles/vehicles.qc
qcsrc/client/wall.qh
qcsrc/client/waypointsprites.qh
qcsrc/client/weapons/projectile.qh
qcsrc/common/util-pre.qh

index b567190caa666f165cfe49bea7a09ea6fd8b0d73..7bc3b9b1aa45eeacefd1a77d6887e95137a7e46c 100644 (file)
@@ -15,12 +15,12 @@ float bgmscriptbuf;
 float bgmscriptbufsize;
 float bgmscriptbufloaded;
 
 float bgmscriptbufsize;
 float bgmscriptbufloaded;
 
-.float bgmscriptline;
-.float bgmscriptline0;
-.float bgmscriptvolume;
-.float bgmscripttime;
-.float bgmscriptstate;
-.float bgmscriptstatetime;
+class(BGMScript) .float bgmscriptline;
+class(BGMScript) .float bgmscriptline0;
+class(BGMScript) .float bgmscriptvolume;
+class(BGMScript) .float bgmscripttime;
+class(BGMScript) .float bgmscriptstate;
+class(BGMScript) .float bgmscriptstatetime;
 
 float GetAttackDecaySustainAmplitude(float a, float d, float s, float t)
 {
 
 float GetAttackDecaySustainAmplitude(float a, float d, float s, float t)
 {
index 910ef6b5df006c69f3347ad33363498d31f53a74..f88105ba0b46ab6b330d1e56bf98f2394c2fdde2 100644 (file)
@@ -1,13 +1,14 @@
 #ifndef BGMSCRIPT_H
 #define BGMSCRIPT_H
 
 #ifndef BGMSCRIPT_H
 #define BGMSCRIPT_H
 
-.string bgmscript;
-.float bgmscriptattack;
-.float bgmscriptdecay;
-.float bgmscriptsustain;
-.float bgmscriptrelease;
+entityclass(BGMScript)
+class(BGMScript) .string bgmscript;
+class(BGMScript) .float bgmscriptattack;
+class(BGMScript) .float bgmscriptdecay;
+class(BGMScript) .float bgmscriptsustain;
+class(BGMScript) .float bgmscriptrelease;
 
 
-.float just_toggled;
+class(BGMScript) .float just_toggled;
 
 void BGMScript_InitEntity(entity e);
 float BGMScript(entity e);
 
 void BGMScript_InitEntity(entity e);
 float BGMScript(entity e);
index 6068a799f752892a2d1dc8f86b7d412537c0644c..8112afb5320f0ae1a41188bd02b98e2bb1c8a26c 100644 (file)
@@ -10,8 +10,8 @@
 #elif defined(SVQC)
 #endif
 
 #elif defined(SVQC)
 #endif
 
-
-.bool silent;
+entityclass(Casing)
+class(Casing) .bool silent;
 
 void Casing_Delete()
 {
 
 void Casing_Delete()
 {
index 8436ff6225a0ccc0e546bf5007fccec05720c394..cfc192c845375f3f028f4a4683ab3a3e79291aef 100644 (file)
@@ -2,11 +2,12 @@
 #include "noise.qh"
 #include "../warpzonelib/common.qh"
 
 #include "noise.qh"
 #include "../warpzonelib/common.qh"
 
-.float HookType; // ENT_CLIENT_*
-.vector origin;
-.vector velocity;
-.float HookSilent;
-.float HookRange;
+entityclass(Hook)
+class(Hook) .float HookType; // ENT_CLIENT_*
+class(Hook) .vector origin;
+class(Hook) .vector velocity;
+class(Hook) .float HookSilent;
+class(Hook) .float HookRange;
 
 void Draw_CylindricLine(vector from, vector to, float thickness, string texture, float aspect, float shift, vector rgb, float theAlpha, float drawflag, vector vieworg)
 {
 
 void Draw_CylindricLine(vector from, vector to, float thickness, string texture, float aspect, float shift, vector rgb, float theAlpha, float drawflag, vector vieworg)
 {
@@ -49,7 +50,7 @@ void Draw_GrapplingHook_trace_callback(vector start, vector hit, vector end)
        Draw_GrapplingHook_trace_callback_rnd += 0.25 * vlen(hit - start) / 8;
 }
 
        Draw_GrapplingHook_trace_callback_rnd += 0.25 * vlen(hit - start) / 8;
 }
 
-.float teleport_time;
+class(Hook) .float teleport_time;
 void Draw_GrapplingHook()
 {
        vector a, b, atrans;
 void Draw_GrapplingHook()
 {
        vector a, b, atrans;
index 16a7645fd991819a55fd1b8de4349d318ee15f30..acff23a281506392846aa0930d6abd43116f8666 100644 (file)
@@ -69,18 +69,19 @@ vector panel_size_backup;
 vector panel_size_copied;
 
 entity panel;
 vector panel_size_copied;
 
 entity panel;
-.string panel_name;
-.int panel_id;
-.vector current_panel_pos;
-.vector current_panel_size;
-.string current_panel_bg;
-.float current_panel_bg_alpha;
-.float current_panel_bg_border;
-.vector current_panel_bg_color;
-.float current_panel_bg_color_team;
-.float current_panel_bg_padding;
-.float current_panel_fg_alpha;
-.float update_time;
+entityclass(HUDPanel)
+class(HUDPanel) .string panel_name;
+class(HUDPanel) .int panel_id;
+class(HUDPanel) .vector current_panel_pos;
+class(HUDPanel) .vector current_panel_size;
+class(HUDPanel) .string current_panel_bg;
+class(HUDPanel) .float current_panel_bg_alpha;
+class(HUDPanel) .float current_panel_bg_border;
+class(HUDPanel) .vector current_panel_bg_color;
+class(HUDPanel) .float current_panel_bg_color_team;
+class(HUDPanel) .float current_panel_bg_padding;
+class(HUDPanel) .float current_panel_fg_alpha;
+class(HUDPanel) .float update_time;
 float panel_enabled;
 vector panel_pos;
 vector panel_size;
 float panel_enabled;
 vector panel_pos;
 vector panel_size;
@@ -97,7 +98,7 @@ string panel_bg_border_str;
 float panel_bg_padding;
 string panel_bg_padding_str;
 
 float panel_bg_padding;
 string panel_bg_padding_str;
 
-.void() panel_draw;
+class(HUDPanel) .void() panel_draw;
 
 float current_player;
 
 
 float current_player;
 
index a74c6683a26824b0d9ac091e48012d6fb0258ab1..5796157ef9d4317b28b3d39244e707b40dd817dc 100644 (file)
 // a laser goes from origin in direction angles
 // it has color 'colormod'
 // and stops when something is in the way
 // a laser goes from origin in direction angles
 // it has color 'colormod'
 // and stops when something is in the way
-.int cnt; // end effect
-.vector colormod;
-.int state; // on-off
-.int count; // flags for the laser
-.vector velocity;
-.float alpha;
-.float scale; // scaling factor of the thickness
-.float modelscale; // scaling factor of the dlight
+entityclass(Laser)
+class(Laser) .int cnt; // end effect
+class(Laser) .vector colormod;
+class(Laser) .int state; // on-off
+class(Laser) .int count; // flags for the laser
+class(Laser) .vector velocity;
+class(Laser) .float alpha;
+class(Laser) .float scale; // scaling factor of the thickness
+class(Laser) .float modelscale; // scaling factor of the dlight
 
 void Draw_Laser()
 {
 
 void Draw_Laser()
 {
index f40cfef5597b5ee87f4c34d106e0cd1a66c001cb..a82d26400103c51833a8b1656019a74c8a7900f7 100644 (file)
@@ -1,10 +1,11 @@
 #ifndef MODELEFFECTS_H
 #define MODELEFFECTS_H
 
 #ifndef MODELEFFECTS_H
 #define MODELEFFECTS_H
 
-.float frame1time;
-.float lifetime, fadetime;
-.float teleport_time;
-.float scale1, scale2;
+entityclass(ModelEffect)
+class(ModelEffect) .float frame1time;
+class(ModelEffect) .float lifetime, fadetime;
+class(ModelEffect) .float teleport_time;
+class(ModelEffect) .float scale1, scale2;
 
 void ModelEffect_Draw();
 
 
 void ModelEffect_Draw();
 
index 5635f3f99b44d51cf04af689f36849344c58ee2a..5b64d6873dd8da68c9aa19d2a4224a509fd80e4b 100644 (file)
@@ -5,11 +5,13 @@
 #elif defined(SVQC)
 #endif
 
 #elif defined(SVQC)
 #endif
 
-.float noise_baccum;
-.float noise_paccum;
-.float noise_paccum2;
-.float noise_paccum3;
-.float noise_bstate;
+entityclass(Noise)
+class(Noise) .float noise_baccum;
+class(Noise) .float noise_paccum;
+class(Noise) .float noise_paccum2;
+class(Noise) .float noise_paccum3;
+class(Noise) .float noise_bstate;
+
 float Noise_Brown(entity e, float dt)
 {
        e.noise_baccum += random() * sqrt(dt); // same stddev for all dt
 float Noise_Brown(entity e, float dt)
 {
        e.noise_baccum += random() * sqrt(dt); // same stddev for all dt
index 12c999ba2bec219d5fb0adb0089aa66a271bfec1..9016f8b1fa6c57a25c5d2a5cd0f2a19958f5af57 100644 (file)
@@ -3,16 +3,17 @@
 
 .int dphitcontentsmask;
 
 
 .int dphitcontentsmask;
 
-.int cnt; // effect number
-.vector velocity; // particle velocity
-.float waterlevel; // direction jitter
-.int count; // count multiplier
-.int impulse; // density
-.string noise; // sound
-.float atten;
-.float volume;
-.float absolute; // 1 = count per second is absolute, 2 = only spawn at toggle
-.vector movedir; // trace direction
+entityclass(PointParticles)
+class(PointParticles) .int cnt; // effect number
+class(PointParticles) .vector velocity; // particle velocity
+class(PointParticles) .float waterlevel; // direction jitter
+class(PointParticles) .int count; // count multiplier
+class(PointParticles) .int impulse; // density
+class(PointParticles) .string noise; // sound
+class(PointParticles) .float atten;
+class(PointParticles) .float volume;
+class(PointParticles) .float absolute; // 1 = count per second is absolute, 2 = only spawn at toggle
+class(PointParticles) .vector movedir; // trace direction
 
 void Draw_PointParticles();
 
 
 void Draw_PointParticles();
 
@@ -20,7 +21,7 @@ void Ent_PointParticles_Remove();
 
 void Ent_PointParticles();
 
 
 void Ent_PointParticles();
 
-.float glow_color; // palette index
+class(PointParticles) .float glow_color; // palette index
 
 void Draw_Rain();
 
 
 void Draw_Rain();
 
index 0a9ac8cacb9167ddf05fc7eb762aafc8b02b26ff..e1d85b3dd26776f46cffbf4f15140f6cf3756d90 100644 (file)
@@ -2,13 +2,13 @@
 
 #include "../warpzonelib/anglestransform.qh"
 
 
 #include "../warpzonelib/anglestransform.qh"
 
-.float skeleton_info_modelindex;
-.float skeleton_info_skin;
+class(Skeleton) .float skeleton_info_modelindex;
+class(Skeleton) .float skeleton_info_skin;
 const int BONETYPE_LOWER = 0;
 const int BONETYPE_UPPER = 1;
 const int MAX_BONES = 128;
 const int BONETYPE_LOWER = 0;
 const int BONETYPE_UPPER = 1;
 const int MAX_BONES = 128;
-.float skeleton_bonetype[MAX_BONES];
-.float skeleton_numbones;
+class(Skeleton) .float skeleton_bonetype[MAX_BONES];
+class(Skeleton) .float skeleton_numbones;
 
 void skeleton_loadinfo(entity e)
 {
 
 void skeleton_loadinfo(entity e)
 {
index 6c95ce231051fad1b7315e50476e82c7b280aa94..4f80c71d8f117c1baad11b787d832c40bab8987f 100644 (file)
@@ -5,9 +5,10 @@ void free_skeleton_from_frames(entity e);
 void skeleton_from_frames(entity e, float is_dead);
 void skeleton_loadinfo(entity e);
 
 void skeleton_from_frames(entity e, float is_dead);
 void skeleton_loadinfo(entity e);
 
-.float bone_upperbody;
-.int bone_weapon;
-.float bone_aim[MAX_AIM_BONES];
-.float bone_aimweight[MAX_AIM_BONES];
-.float fixbone;
+entityclass(Skeleton)
+class(Skeleton) .float bone_upperbody;
+class(Skeleton) .int bone_weapon;
+class(Skeleton) .float bone_aim[MAX_AIM_BONES];
+class(Skeleton) .float bone_aimweight[MAX_AIM_BONES];
+class(Skeleton) .float fixbone;
 #endif
 #endif
index 5ff1b55777e769f40b1446c0f71a1b1e5f1f70d8..f963d5f373578a3ba79797475d77a2c6458519d7 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef RUBBLE_H
 #define RUBBLE_H
 #ifndef RUBBLE_H
 #define RUBBLE_H
-.float creationtime;
+entityclass(Rubble)
+class(Rubble) .float creationtime;
 void RubbleLimit(string cname, float limit, void() deleteproc);
 entity RubbleNew(string cname);
 #endif
 void RubbleLimit(string cname, float limit, void() deleteproc);
 entity RubbleNew(string cname);
 #endif
index f196f8f83340c75dfcffa464534dd2e61f5ca385..4d4478ca15b9f33ea1ad8ff16b40815fb5dd3d49 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef SHOWNAMES_H
 #define SHOWNAMES_H
 
 #ifndef SHOWNAMES_H
 #define SHOWNAMES_H
 
-.float healthvalue;
-.float armorvalue;
-.float sameteam;
-.float fadedelay;
-.float pointtime;
+entityclass(ShowNames)
+class(ShowNames) .float healthvalue;
+class(ShowNames) .float armorvalue;
+class(ShowNames) .float sameteam;
+class(ShowNames) .float fadedelay;
+class(ShowNames) .float pointtime;
 #endif
 #endif
index 1b84287139e570c77cd5bdad67ebb9863166528f..48478782132b3a32ca92195a1ec79d0850f0e972 100644 (file)
@@ -1,8 +1,9 @@
 #ifndef SORTLIST_H
 #define SORTLIST_H
 
 #ifndef SORTLIST_H
 #define SORTLIST_H
 
+entityclass(Sort)
 //.float(entity,entity) sort_cmp;
 //.float(entity,entity) sort_cmp;
-.entity sort_next, sort_prev;
+class(Sort) .entity sort_next, sort_prev;
 
 entity Sort_Spawn();
 
 
 entity Sort_Spawn();
 
index c685214be22bf02150f54a169cf641c71f3f06f2..77aa627db8cf794c426eae8c920e539511c45d13 100644 (file)
@@ -7,8 +7,9 @@ entity music_target;
 entity music_trigger;
 // FIXME also control bgmvolume here, to not require a target_music for the default track.
 
 entity music_trigger;
 // FIXME also control bgmvolume here, to not require a target_music for the default track.
 
-.int state;
-.float lastvol;
+entityclass(TargetMusic)
+class(TargetMusic) .int state;
+class(TargetMusic) .float lastvol;
 
 void TargetMusic_Advance();
 
 
 void TargetMusic_Advance();
 
index 31defc8efbd6c3b3bb8f78d03eaf71fa7ee07da6..242d7ae7df646456a3c669c840cff25e416dc20b 100644 (file)
@@ -3,11 +3,12 @@
 
 const int MAX_TEAMRADAR_TIMES = 32;
 
 
 const int MAX_TEAMRADAR_TIMES = 32;
 
+entityclass(TeamRadar)
 // to make entities have dots on the team radar
 // to make entities have dots on the team radar
-.float teamradar_icon;
-.float teamradar_times[MAX_TEAMRADAR_TIMES];
-.int teamradar_time_index;
-.vector teamradar_color;
+class(TeamRadar) .float teamradar_icon;
+class(TeamRadar) .float teamradar_times[MAX_TEAMRADAR_TIMES];
+class(TeamRadar) .int teamradar_time_index;
+class(TeamRadar) .vector teamradar_color;
 
 float teamradar_angle; // player yaw angle
 vector teamradar_origin3d_in_texcoord; // player origin
 
 float teamradar_angle; // player yaw angle
 vector teamradar_origin3d_in_texcoord; // player origin
index 24506bef0c18acc5d02f5a3560dd1f386a4c69ab..42366687e9254c1f46f8db04a1b339455e7013a9 100644 (file)
@@ -162,7 +162,7 @@ void turret_remove()
     self.tur_head = world;
 }
 
     self.tur_head = world;
 }
 
-.vector glowmod;
+class(Turret) .vector glowmod;
 void turret_changeteam()
 {
        switch(self.team - 1)
 void turret_changeteam()
 {
        switch(self.team - 1)
index 6316d795b8899e0654a7e041073322a5329c496d..ab651e2fa914bce8c23d0fb69918a57f738c4fe1 100644 (file)
@@ -5,5 +5,6 @@
 
 void ent_turret();
 void turrets_precache();
 
 void ent_turret();
 void turrets_precache();
-.entity tur_head;
+entityclass(Turret)
+class(Turret) .entity tur_head;
 #endif
 #endif
index cd518e091d3c2ecdd3677aaf7c2ca50a5f6217aa..95692e87c706cc5ea8aa9030618a3ddd6024c3cc 100644 (file)
@@ -6,11 +6,11 @@ const int TUBA_MIN = -18;
 const int TUBA_MAX = 27;
 const int TUBA_INSTRUMENTS = 3;
 
 const int TUBA_MAX = 27;
 const int TUBA_INSTRUMENTS = 3;
 
-.int note;
-.bool tuba_attenuate;
-.float tuba_volume;
-.float tuba_volume_initial;
-.int tuba_instrument;
+class(Tuba) .int note;
+class(Tuba) .bool tuba_attenuate;
+class(Tuba) .float tuba_volume;
+class(Tuba) .float tuba_volume_initial;
+class(Tuba) .int tuba_instrument;
 
 int Tuba_PitchStep;
 
 
 int Tuba_PitchStep;
 
index bdc1386eab666e352dd4d1ed9413a5d5fe237de3..a04e66762b33ac1b9ae7370f5dc1c6705959d97d 100644 (file)
@@ -2,4 +2,7 @@
 #define TUBA_H
 void Ent_TubaNote(bool isNew);
 void Tuba_Precache();
 #define TUBA_H
 void Ent_TubaNote(bool isNew);
 void Tuba_Precache();
+
+entityclass(Tuba)
+
 #endif
 #endif
index 290385e495fcdd389aa4629b22fbe773a159d961..0f19c90662bc13f4dc3c580a617185d9435af0bb 100644 (file)
@@ -60,10 +60,11 @@ void CSQC_BUMBLE_GUN_HUD();
 const int MAX_AXH = 4;
 entity AuxiliaryXhair[MAX_AXH];
 
 const int MAX_AXH = 4;
 entity AuxiliaryXhair[MAX_AXH];
 
-.string axh_image;
-.float  axh_fadetime;
-.float  axh_drawflag;
-.float  axh_scale;
+entityclass(AuxiliaryXhair)
+class(AuxiliaryXhair) .string axh_image;
+class(AuxiliaryXhair) .float  axh_fadetime;
+class(AuxiliaryXhair) .float  axh_drawflag;
+class(AuxiliaryXhair) .float  axh_scale;
 
 const string bumb_ico =  "gfx/vehicles/bumb.tga";
 const string bumb_lgun =  "gfx/vehicles/bumb_lgun.tga";
 
 const string bumb_ico =  "gfx/vehicles/bumb.tga";
 const string bumb_lgun =  "gfx/vehicles/bumb_lgun.tga";
index 984b54c88423d848bdc3356951f91d536aa0829a..3a439e6ffe88ff1a14c7817e1d7f682aac0f204f 100644 (file)
@@ -1,11 +1,12 @@
 #ifndef WALL_H
 #define WALL_H
 
 #ifndef WALL_H
 #define WALL_H
 
-.float lip;
-.float bgmscriptangular;
-.int lodmodelindex0, lodmodelindex1, lodmodelindex2;
-.float loddistance1, loddistance2;
-.vector saved;
+entityclass(Wall)
+class(Wall) .float lip;
+class(Wall) .float bgmscriptangular;
+class(Wall) .int lodmodelindex0, lodmodelindex1, lodmodelindex2;
+class(Wall) .float loddistance1, loddistance2;
+class(Wall) .vector saved;
 
 void Ent_Wall_Draw();
 
 
 void Ent_Wall_Draw();
 
index 2a2b4cb868941477c71e3c4fed7a40ea34cd8cfd..575cd480979a6d6119a50a84dd696170a82db9d8 100644 (file)
@@ -26,21 +26,22 @@ float waypointsprite_distancefadescale;
 float waypointsprite_distancefadedistance;
 float waypointsprite_alpha;
 
 float waypointsprite_distancefadedistance;
 float waypointsprite_alpha;
 
-.float helpme;
-.float rule;
-.string netname; // primary picture
-.string netname2; // secondary picture
-.string netname3; // tertiary picture
-.int team; // team that gets netname2
-.float lifetime;
-.float fadetime;
-.float maxdistance;
-.int hideflags;
-.float spawntime;
-.float health;
-.float build_started;
-.float build_starthealth;
-.float build_finished;
+entityclass(WaypointSprite)
+class(WaypointSprite) .float helpme;
+class(WaypointSprite) .float rule;
+class(WaypointSprite) .string netname; // primary picture
+class(WaypointSprite) .string netname2; // secondary picture
+class(WaypointSprite) .string netname3; // tertiary picture
+class(WaypointSprite) .int team; // team that gets netname2
+class(WaypointSprite) .float lifetime;
+class(WaypointSprite) .float fadetime;
+class(WaypointSprite) .float maxdistance;
+class(WaypointSprite) .int hideflags;
+class(WaypointSprite) .float spawntime;
+class(WaypointSprite) .float health;
+class(WaypointSprite) .float build_started;
+class(WaypointSprite) .float build_starthealth;
+class(WaypointSprite) .float build_finished;
 
 const float SPRITE_HEALTHBAR_WIDTH = 144;
 const float SPRITE_HEALTHBAR_HEIGHT = 9;
 
 const float SPRITE_HEALTHBAR_WIDTH = 144;
 const float SPRITE_HEALTHBAR_HEIGHT = 9;
index 3a4cdcb0432614006f9bd74de807dd06fdf13c21..a530df9881ecf39169a7804f31e006fa148f79f9 100644 (file)
@@ -1,20 +1,21 @@
 #ifndef PROJECTILE_H
 #define PROJECTILE_H
 
 #ifndef PROJECTILE_H
 #define PROJECTILE_H
 
-.int traileffect;
-
-.vector iorigin1, iorigin2;
-.float spawntime;
-.vector trail_oldorigin;
-.float trail_oldtime;
-.float fade_time, fade_rate;
-
-.float alphamod;
-.int count; // set if clientside projectile
-.int cnt; // sound index
-.float gravity;
-.int snd_looping;
-.bool silent;
+entityclass(Projectile)
+class(Projectile) .int traileffect;
+
+class(Projectile) .vector iorigin1, iorigin2;
+class(Projectile) .float spawntime;
+class(Projectile) .vector trail_oldorigin;
+class(Projectile) .float trail_oldtime;
+class(Projectile) .float fade_time, fade_rate;
+
+class(Projectile) .float alphamod;
+class(Projectile) .int count; // set if clientside projectile
+class(Projectile) .int cnt; // sound index
+class(Projectile) .float gravity;
+class(Projectile) .int snd_looping;
+class(Projectile) .bool silent;
 
 void SUB_Stop();
 
 
 void SUB_Stop();
 
index b3aacfa974858b0efe9318867231fd8739a70769..f10b5c5f8de0203aaf9e6a4e393bf5ae22411f20 100644 (file)
 #endif
 
 #ifndef QCC_SUPPORT_ENTITYCLASS
 #endif
 
 #ifndef QCC_SUPPORT_ENTITYCLASS
-    #define entityclass(name) typedef entity name
+    #define entityclass(name) /* typedef entity name; */
     #define class(name)
     #define new(class) spawn()
 #else
     #define class(name)
     #define new(class) spawn()
 #else
-    #define entityclass(name) entityclass name {}
+    #define entityclass(name) entityclass name {};
     #define class(name) [[class(name)]]
     #define new(class) ((class) spawn())
 #endif
     #define class(name) [[class(name)]]
     #define new(class) ((class) spawn())
 #endif