DDraceNetwork Docs
server_data.h
Go to the documentation of this file.
1#ifndef SERVER_CONTENT_HEADER
2#define SERVER_CONTENT_HEADER
3#include <engine/graphics.h>
4struct CDataSound
5{
6 int m_Id;
7 const char* m_pFilename;
8};
9struct CDataSoundset
10{
11 const char* m_pName;
12 int m_NumSounds;
14 int m_Last;
15};
16struct CDataImage
17{
18 const char* m_pName;
19 const char* m_pFilename;
21};
22struct CDataSpriteset
23{
25 int m_Gridx;
26 int m_Gridy;
27};
28struct CDataSprite
29{
30 const char* m_pName;
32 int m_X;
33 int m_Y;
34 int m_W;
35 int m_H;
36};
37struct CDataPickupspec
38{
39 const char* m_pName;
40 int m_Respawntime;
41 int m_Spawndelay;
42};
43struct CAnimKeyframe
44{
45 float m_Time;
46 float m_X;
47 float m_Y;
48 float m_Angle;
49};
50struct CAnimSequence
51{
52 int m_NumFrames;
54};
55struct CAnimation
56{
57 const char* m_pName;
62};
63struct CDataWeaponspec
64{
65 const char* m_pName;
71 int m_VisualSize;
72 int m_Firedelay;
73 int m_Maxammo;
75 int m_Damage;
76 float m_Offsetx;
77 float m_Offsety;
78 float m_Muzzleoffsetx;
79 float m_Muzzleoffsety;
80 float m_Muzzleduration;
81};
83{
85};
87{
89 float m_Curvature;
90 float m_Speed;
91 float m_Lifetime;
92};
94{
96 float m_Curvature;
97 float m_Speed;
98 float m_Speeddiff;
99 float m_Lifetime;
100};
102{
104 float m_Curvature;
105 float m_Speed;
106 float m_Lifetime;
107};
109{
111 float m_Reach;
112 int m_BounceDelay;
113 int m_BounceNum;
114 float m_BounceCost;
115};
117{
119 int m_Duration;
120 int m_Movetime;
121 int m_Velocity;
122};
123struct CDataWeaponspecs
124{
131 int m_NumId;
133};
134struct CDataContainer
135{
136 int m_NumSounds;
138 int m_NumImages;
140 int m_NumPickups;
142 int m_NumSpritesets;
144 int m_NumSprites;
146 int m_NumAnimations;
149};
150extern CDataContainer *g_pData;
151enum
152{
171enum
172{
185enum
186{
326#endif
Definition: graphics.h:200
@ IMAGE_CURSOR
Definition: server_data.h:156
@ IMAGE_HUD
Definition: server_data.h:167
@ IMAGE_STRONGWEAK
Definition: server_data.h:166
@ IMAGE_AUDIO_SOURCE
Definition: server_data.h:165
@ IMAGE_GUIICONS
Definition: server_data.h:163
@ IMAGE_GAME
Definition: server_data.h:154
@ IMAGE_CONSOLE_BAR
Definition: server_data.h:160
@ IMAGE_NULL
Definition: server_data.h:153
@ IMAGE_SPEEDUP_ARROW
Definition: server_data.h:161
@ IMAGE_ARROW
Definition: server_data.h:164
@ IMAGE_CONSOLE_BG
Definition: server_data.h:159
@ IMAGE_EXTRAS
Definition: server_data.h:168
@ NUM_IMAGES
Definition: server_data.h:169
@ IMAGE_GUIBUTTONS
Definition: server_data.h:162
@ IMAGE_PARTICLES
Definition: server_data.h:155
@ IMAGE_EMOTICONS
Definition: server_data.h:158
@ IMAGE_BANNER
Definition: server_data.h:157
CDataContainer * g_pData
Definition: client_data.cpp:614
@ SPRITE_ZZZ
Definition: server_data.h:280
@ SPRITE_PICKUP_LASER
Definition: server_data.h:248
@ SPRITE_HUD_AIRJUMP_EMPTY
Definition: server_data.h:295
@ SPRITE_TEE_BODY_OUTLINE
Definition: server_data.h:257
@ SPRITE_HUD_TELEPORT_LASER
Definition: server_data.h:319
@ SPRITE_PART_SMOKE
Definition: server_data.h:192
@ SPRITE_PART_SLICE
Definition: server_data.h:187
@ SPRITE_WEAPON_SHOTGUN_MUZZLE2
Definition: server_data.h:223
@ SPRITE_WEAPON_LASER_PROJ
Definition: server_data.h:236
@ SPRITE_HEARTS
Definition: server_data.h:270
@ SPRITE_WEAPON_NINJA_MUZZLE2
Definition: server_data.h:240
@ SPRITE_WEAPON_NINJA_CURSOR
Definition: server_data.h:232
@ SPRITE_WEAPON_GRENADE_PROJ
Definition: server_data.h:227
@ SPRITE_PART_EXPL01
Definition: server_data.h:194
@ SPRITE_WEAPON_SHOTGUN_BODY
Definition: server_data.h:219
@ SPRITE_SORRY
Definition: server_data.h:274
@ SPRITE_HUD_NINJA_BAR_EMPTY
Definition: server_data.h:307
@ SPRITE_HUD_HOOK_HIT_DISABLED
Definition: server_data.h:309
@ SPRITE_TEE_HAND_OUTLINE
Definition: server_data.h:261
@ SPRITE_WEAPON_LASER_BODY
Definition: server_data.h:234
@ SPRITE_PICKUP_HEALTH
Definition: server_data.h:242
@ SPRITE_GUIICON_MUTE
Definition: server_data.h:288
@ SPRITE_GHOST
Definition: server_data.h:275
@ NUM_SPRITES
Definition: server_data.h:324
@ SPRITE_PICKUP_HAMMER
Definition: server_data.h:244
@ SPRITE_TEE_EYE_HAPPY
Definition: server_data.h:265
@ SPRITE_PICKUP_ARMOR_SHOTGUN
Definition: server_data.h:250
@ SPRITE_PART7
Definition: server_data.h:210
@ SPRITE_WEAPON_NINJA_MUZZLE1
Definition: server_data.h:239
@ SPRITE_SPEEDUP_ARROW
Definition: server_data.h:284
@ SPRITE_GUIBUTTON_ON
Definition: server_data.h:286
@ SPRITE_TEE_EYE_NORMAL
Definition: server_data.h:262
@ SPRITE_HUD_FREEZE_BAR_EMPTY_RIGHT
Definition: server_data.h:304
@ SPRITE_WEAPON_GUN_MUZZLE1
Definition: server_data.h:216
@ SPRITE_PART_HIT01
Definition: server_data.h:196
@ SPRITE_WEAPON_GUN_MUZZLE3
Definition: server_data.h:218
@ SPRITE_DROP
Definition: server_data.h:271
@ SPRITE_WEAPON_GUN_CURSOR
Definition: server_data.h:214
@ SPRITE_HUD_ENDLESS_JUMP
Definition: server_data.h:298
@ SPRITE_PART2
Definition: server_data.h:205
@ SPRITE_HUD_GRENADE_HIT_DISABLED
Definition: server_data.h:312
@ SPRITE_PART_SNOWFLAKE
Definition: server_data.h:323
@ SPRITE_PICKUP_ARMOR
Definition: server_data.h:243
@ SPRITE_MUSIC
Definition: server_data.h:273
@ SPRITE_HEALTH_EMPTY
Definition: server_data.h:198
@ SPRITE_HUD_SOLO
Definition: server_data.h:296
@ SPRITE_WEAPON_LASER_CURSOR
Definition: server_data.h:235
@ SPRITE_HUD_FREEZE_BAR_EMPTY
Definition: server_data.h:303
@ SPRITE_WEAPON_GUN_PROJ
Definition: server_data.h:215
@ SPRITE_GUIICON_EMOTICON_MUTE
Definition: server_data.h:289
@ SPRITE_WEAPON_GRENADE_BODY
Definition: server_data.h:225
@ SPRITE_TEE_EYE_PAIN
Definition: server_data.h:264
@ SPRITE_SPLATTEE
Definition: server_data.h:277
@ SPRITE_PART3
Definition: server_data.h:206
@ SPRITE_HUD_DUMMY_COPY
Definition: server_data.h:322
@ SPRITE_HOOK_STRONG
Definition: server_data.h:292
@ SPRITE_WEAPON_GUN_BODY
Definition: server_data.h:213
@ SPRITE_WEAPON_NINJA_PROJ
Definition: server_data.h:233
@ SPRITE_PART6
Definition: server_data.h:209
@ SPRITE_HUD_NINJA_BAR_FULL_LEFT
Definition: server_data.h:305
@ SPRITE_ZOMG
Definition: server_data.h:279
@ SPRITE_QUESTION
Definition: server_data.h:283
@ SPRITE_WEAPON_SHOTGUN_MUZZLE1
Definition: server_data.h:222
@ SPRITE_PICKUP_GRENADE
Definition: server_data.h:247
@ SPRITE_HOOK_CHAIN
Definition: server_data.h:237
@ SPRITE_HUD_TELEPORT_GRENADE
Definition: server_data.h:317
@ SPRITE_PART_SPLAT02
Definition: server_data.h:190
@ SPRITE_HEALTH_FULL
Definition: server_data.h:197
@ SPRITE_HUD_FREEZE_BAR_FULL_LEFT
Definition: server_data.h:301
@ SPRITE_HUD_SHOTGUN_HIT_DISABLED
Definition: server_data.h:311
@ SPRITE_GUIBUTTON_HOVER
Definition: server_data.h:287
@ SPRITE_DEVILTEE
Definition: server_data.h:278
@ SPRITE_STAR1
Definition: server_data.h:201
@ SPRITE_HOOK_WEAK
Definition: server_data.h:293
@ SPRITE_TEE_BODY
Definition: server_data.h:256
@ SPRITE_PART_SPLAT01
Definition: server_data.h:189
@ SPRITE_HUD_DEEP_FROZEN
Definition: server_data.h:315
@ SPRITE_WEAPON_SHOTGUN_MUZZLE3
Definition: server_data.h:224
@ SPRITE_PART_AIRJUMP
Definition: server_data.h:195
@ SPRITE_SUSHI
Definition: server_data.h:276
@ SPRITE_FLAG_RED
Definition: server_data.h:255
@ SPRITE_PICKUP_SHOTGUN
Definition: server_data.h:246
@ SPRITE_WEAPON_SHOTGUN_CURSOR
Definition: server_data.h:220
@ SPRITE_HUD_FREEZE_BAR_FULL
Definition: server_data.h:302
@ SPRITE_HOOK_HEAD
Definition: server_data.h:238
@ SPRITE_TEE_FOOT
Definition: server_data.h:258
@ SPRITE_HUD_TELEPORT_GUN
Definition: server_data.h:318
@ SPRITE_PART_SPLAT03
Definition: server_data.h:191
@ SPRITE_HUD_NINJA_BAR_FULL
Definition: server_data.h:306
@ SPRITE_PICKUP_GUN
Definition: server_data.h:245
@ SPRITE_WEAPON_HAMMER_BODY
Definition: server_data.h:228
@ SPRITE_STAR2
Definition: server_data.h:202
@ SPRITE_PICKUP_NINJA
Definition: server_data.h:249
@ SPRITE_WEAPON_NINJA_BODY
Definition: server_data.h:231
@ SPRITE_PART8
Definition: server_data.h:211
@ SPRITE_AUDIO_SOURCE
Definition: server_data.h:291
@ SPRITE_WEAPON_SHOTGUN_PROJ
Definition: server_data.h:221
@ SPRITE_ARMOR_EMPTY
Definition: server_data.h:200
@ SPRITE_TEE_FOOT_OUTLINE
Definition: server_data.h:259
@ SPRITE_EXCLAMATION
Definition: server_data.h:269
@ SPRITE_PART4
Definition: server_data.h:207
@ SPRITE_WEAPON_NINJA_MUZZLE3
Definition: server_data.h:241
@ SPRITE_PICKUP_ARMOR_NINJA
Definition: server_data.h:252
@ SPRITE_WEAPON_GUN_MUZZLE2
Definition: server_data.h:217
@ SPRITE_OOP
Definition: server_data.h:268
@ SPRITE_WTF
Definition: server_data.h:281
@ SPRITE_PART1
Definition: server_data.h:204
@ SPRITE_WEAPON_GRENADE_CURSOR
Definition: server_data.h:226
@ SPRITE_DOTDOT
Definition: server_data.h:272
@ SPRITE_STAR3
Definition: server_data.h:203
@ SPRITE_PART_SHELL
Definition: server_data.h:193
@ SPRITE_HUD_LASER_HIT_DISABLED
Definition: server_data.h:313
@ SPRITE_TEE_EYE_DEAD
Definition: server_data.h:266
@ SPRITE_WEAPON_HAMMER_PROJ
Definition: server_data.h:230
@ SPRITE_PICKUP_ARMOR_LASER
Definition: server_data.h:253
@ SPRITE_GUIICON_FRIEND
Definition: server_data.h:290
@ SPRITE_HUD_AIRJUMP
Definition: server_data.h:294
@ SPRITE_TEE_HAND
Definition: server_data.h:260
@ SPRITE_FLAG_BLUE
Definition: server_data.h:254
@ SPRITE_TEE_EYE_ANGRY
Definition: server_data.h:263
@ SPRITE_TEE_EYE_SURPRISE
Definition: server_data.h:267
@ SPRITE_PART5
Definition: server_data.h:208
@ SPRITE_HUD_DUMMY_HAMMER
Definition: server_data.h:321
@ SPRITE_HUD_PRACTICE_MODE
Definition: server_data.h:320
@ SPRITE_HUD_COLLISION_DISABLED
Definition: server_data.h:297
@ SPRITE_HUD_HAMMER_HIT_DISABLED
Definition: server_data.h:310
@ SPRITE_EYES
Definition: server_data.h:282
@ SPRITE_HUD_ENDLESS_HOOK
Definition: server_data.h:299
@ SPRITE_HUD_LIVE_FROZEN
Definition: server_data.h:316
@ SPRITE_ARMOR_FULL
Definition: server_data.h:199
@ SPRITE_PICKUP_ARMOR_GRENADE
Definition: server_data.h:251
@ SPRITE_GUIBUTTON_OFF
Definition: server_data.h:285
@ SPRITE_WEAPON_HAMMER_CURSOR
Definition: server_data.h:229
@ SPRITE_HUD_GUN_HIT_DISABLED
Definition: server_data.h:314
@ SPRITE_HUD_NINJA_BAR_EMPTY_RIGHT
Definition: server_data.h:308
@ SPRITE_HUD_JETPACK
Definition: server_data.h:300
@ SPRITE_PART9
Definition: server_data.h:212
@ SPRITE_PART_BALL
Definition: server_data.h:188
@ ANIM_SIT_RIGHT
Definition: server_data.h:177
@ ANIM_INAIR
Definition: server_data.h:175
@ ANIM_WALK
Definition: server_data.h:178
@ ANIM_RUN_RIGHT
Definition: server_data.h:180
@ ANIM_BASE
Definition: server_data.h:173
@ ANIM_HAMMER_SWING
Definition: server_data.h:181
@ ANIM_NINJA_SWING
Definition: server_data.h:182
@ NUM_ANIMS
Definition: server_data.h:183
@ ANIM_SIT_LEFT
Definition: server_data.h:176
@ ANIM_RUN_LEFT
Definition: server_data.h:179
@ ANIM_IDLE
Definition: server_data.h:174
Definition: client_data.h:44
float m_Time
Definition: client_data.h:45
float m_Angle
Definition: client_data.h:48
float m_X
Definition: client_data.h:46
float m_Y
Definition: client_data.h:47
Definition: client_data.h:51
CAnimKeyframe * m_aFrames
Definition: client_data.h:53
int m_NumFrames
Definition: client_data.h:52
Definition: client_data.h:56
CAnimSequence m_Attach
Definition: client_data.h:61
const char * m_pName
Definition: client_data.h:57
CAnimSequence m_FrontFoot
Definition: client_data.h:60
CAnimSequence m_BackFoot
Definition: client_data.h:59
CAnimSequence m_Body
Definition: client_data.h:58
Definition: client_data.h:135
int m_NumImages
Definition: client_data.h:138
int m_NumSpritesets
Definition: client_data.h:142
CDataImage * m_aImages
Definition: client_data.h:139
CDataSpriteset * m_aSpritesets
Definition: client_data.h:143
int m_NumSprites
Definition: client_data.h:144
CDataPickupspec * m_aPickups
Definition: client_data.h:141
int m_NumPickups
Definition: client_data.h:140
CDataWeaponspecs m_Weapons
Definition: client_data.h:148
int m_NumAnimations
Definition: client_data.h:146
CDataSoundset * m_aSounds
Definition: client_data.h:137
CDataSprite * m_aSprites
Definition: client_data.h:145
int m_NumSounds
Definition: client_data.h:136
CAnimation * m_aAnimations
Definition: client_data.h:147
Definition: client_data.h:17
IGraphics::CTextureHandle m_Id
Definition: client_data.h:20
const char * m_pName
Definition: client_data.h:18
const char * m_pFilename
Definition: client_data.h:19
Definition: client_data.h:38
int m_Respawntime
Definition: client_data.h:40
int m_Spawndelay
Definition: client_data.h:41
const char * m_pName
Definition: client_data.h:39
Definition: client_data.h:5
const char * m_pFilename
Definition: client_data.h:7
int m_Id
Definition: client_data.h:6
Definition: client_data.h:10
CDataSound * m_aSounds
Definition: client_data.h:13
int m_Last
Definition: client_data.h:14
const char * m_pName
Definition: client_data.h:11
int m_NumSounds
Definition: client_data.h:12
Definition: client_data.h:29
CDataSpriteset * m_pSet
Definition: client_data.h:31
int m_X
Definition: client_data.h:32
int m_W
Definition: client_data.h:34
int m_Y
Definition: client_data.h:33
int m_H
Definition: client_data.h:35
const char * m_pName
Definition: client_data.h:30
Definition: client_data.h:23
int m_Gridx
Definition: client_data.h:25
int m_Gridy
Definition: client_data.h:26
CDataImage * m_pImage
Definition: client_data.h:24
Definition: client_data.h:102
float m_Lifetime
Definition: client_data.h:106
CDataWeaponspec * m_pBase
Definition: client_data.h:103
float m_Curvature
Definition: client_data.h:104
float m_Speed
Definition: client_data.h:105
Definition: client_data.h:87
float m_Lifetime
Definition: client_data.h:91
float m_Curvature
Definition: client_data.h:89
float m_Speed
Definition: client_data.h:90
CDataWeaponspec * m_pBase
Definition: client_data.h:88
Definition: client_data.h:83
CDataWeaponspec * m_pBase
Definition: client_data.h:84
Definition: client_data.h:109
int m_BounceNum
Definition: client_data.h:113
float m_Reach
Definition: client_data.h:111
CDataWeaponspec * m_pBase
Definition: client_data.h:110
float m_BounceCost
Definition: client_data.h:114
int m_BounceDelay
Definition: client_data.h:112
Definition: client_data.h:117
int m_Duration
Definition: client_data.h:119
int m_Velocity
Definition: client_data.h:121
int m_Movetime
Definition: client_data.h:120
CDataWeaponspec * m_pBase
Definition: client_data.h:118
Definition: client_data.h:94
float m_Curvature
Definition: client_data.h:96
float m_Lifetime
Definition: client_data.h:99
float m_Speeddiff
Definition: client_data.h:98
CDataWeaponspec * m_pBase
Definition: client_data.h:95
float m_Speed
Definition: client_data.h:97
Definition: client_data.h:64
int m_Damage
Definition: client_data.h:75
int m_VisualSize
Definition: client_data.h:71
CDataSprite * m_pSpriteCursor
Definition: client_data.h:67
float m_Muzzleoffsetx
Definition: client_data.h:78
CDataSprite * m_pSpriteBody
Definition: client_data.h:66
int m_NumSpriteMuzzles
Definition: client_data.h:69
const char * m_pName
Definition: client_data.h:65
float m_Offsety
Definition: client_data.h:77
CDataSprite * m_pSpriteProj
Definition: client_data.h:68
float m_Muzzleduration
Definition: client_data.h:80
CDataSprite ** m_aSpriteMuzzles
Definition: client_data.h:70
int m_Ammoregentime
Definition: client_data.h:74
float m_Offsetx
Definition: client_data.h:76
int m_Maxammo
Definition: client_data.h:73
float m_Muzzleoffsety
Definition: client_data.h:79
int m_Firedelay
Definition: client_data.h:72
Definition: client_data.h:124
CDataWeaponspecHammer m_Hammer
Definition: client_data.h:125
CDataWeaponspecNinja m_Ninja
Definition: client_data.h:130
CDataWeaponspecLaser m_Laser
Definition: client_data.h:129
CDataWeaponspecGrenade m_Grenade
Definition: client_data.h:128
CDataWeaponspecGun m_Gun
Definition: client_data.h:126
int m_NumId
Definition: client_data.h:131
CDataWeaponspec * m_aId
Definition: client_data.h:132
CDataWeaponspecShotgun m_Shotgun
Definition: client_data.h:127