-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDeclFX.h
100 lines (82 loc) · 2.21 KB
/
DeclFX.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*****************************************************************************
The Dark Mod GPL Source Code
This file is part of the The Dark Mod Source Code, originally based
on the Doom 3 GPL Source Code as published in 2011.
The Dark Mod Source Code is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the License,
or (at your option) any later version. For details, see LICENSE.TXT.
Project: The Dark Mod (http://www.thedarkmod.com/)
******************************************************************************/
#ifndef __DECLFX_H__
#define __DECLFX_H__
/*
===============================================================================
idDeclFX
===============================================================================
*/
enum {
FX_LIGHT,
FX_PARTICLE,
FX_DECAL,
FX_MODEL,
FX_SOUND,
FX_SHAKE,
FX_ATTACHLIGHT,
FX_ATTACHENTITY,
FX_LAUNCH,
FX_SHOCKWAVE
};
//
// single fx structure
//
struct idFXSingleAction {
int type;
int sibling;
idStr data;
idStr name;
idStr fire;
float delay;
float duration;
float restart;
float size;
float fadeInTime;
float fadeOutTime;
float shakeTime;
float shakeAmplitude;
float shakeDistance;
float shakeImpulse;
float lightRadius;
float rotate;
float random1;
float random2;
idVec3 lightColor;
idVec3 offset;
idMat3 axis;
bool soundStarted;
bool shakeStarted;
bool shakeFalloff;
bool shakeIgnoreMaster;
bool bindParticles;
bool explicitAxis;
bool noshadows;
bool particleTrackVelocity;
bool trackOrigin;
};
//
// grouped fx structures
//
class idDeclFX : public idDecl {
public:
virtual size_t Size( void ) const;
virtual const char * DefaultDefinition( void ) const;
virtual bool Parse( const char *text, const int textLength );
virtual void FreeData( void );
virtual void Print( void ) const;
virtual void List( void ) const;
idList<idFXSingleAction>events;
idStr joint;
private:
void ParseSingleFXAction( idLexer &src, idFXSingleAction& FXAction );
};
#endif /* !__DECLFX_H__ */