29 #include "../idlib/precompiled.h"
52 switch( list->
events[
i].type ) {
107 FXAction.
data =
"<none>";
108 FXAction.
name =
"<none>";
109 FXAction.
fire =
"<none>";
111 FXAction.
delay = 0.0f;
114 FXAction.
size = 0.0f;
144 if ( !token.
Icmp(
"}" ) ) {
148 if ( !token.
Icmp(
"shake" ) ) {
162 if ( !token.
Icmp(
"noshadows" ) ) {
167 if ( !token.
Icmp(
"name" ) ) {
169 FXAction.
name = token;
173 if ( !token.
Icmp(
"fire") ) {
175 FXAction.
fire = token;
179 if ( !token.
Icmp(
"random" ) ) {
183 FXAction.
delay = 0.0f;
187 if ( !token.
Icmp(
"delay" ) ) {
192 if ( !token.
Icmp(
"rotate" ) ) {
197 if ( !token.
Icmp(
"duration" ) ) {
202 if ( !token.
Icmp(
"trackorigin" ) ) {
207 if (!token.
Icmp(
"restart")) {
212 if ( !token.
Icmp(
"fadeIn" ) ) {
217 if ( !token.
Icmp(
"fadeOut" ) ) {
222 if ( !token.
Icmp(
"size" ) ) {
227 if ( !token.
Icmp(
"offset" ) ) {
236 if ( !token.
Icmp(
"axis" ) ) {
249 if ( !token.
Icmp(
"angle" ) ) {
261 if ( !token.
Icmp(
"uselight" ) ) {
263 FXAction.
data = token;
278 if ( !token.
Icmp(
"attachlight" ) ) {
280 FXAction.
data = token;
288 if ( !token.
Icmp(
"attachentity" ) ) {
290 FXAction.
data = token;
298 if ( !token.
Icmp(
"launch" ) ) {
300 FXAction.
data = token;
308 if ( !token.
Icmp(
"useModel" ) ) {
310 FXAction.
data = token;
323 if ( !token.
Icmp(
"light" ) ) {
325 FXAction.
data = token;
341 if ( !token.
Icmp(
"model" ) ) {
343 FXAction.
data = token;
351 if ( !token.
Icmp(
"particle" ) ) {
353 FXAction.
data = token;
361 if ( !token.
Icmp(
"decal" ) ) {
363 FXAction.
data = token;
371 if ( !token.
Icmp(
"particleTrackVelocity" ) ) {
376 if ( !token.
Icmp(
"sound" ) ) {
378 FXAction.
data = token;
386 if ( !token.
Icmp(
"ignoreMaster" ) ) {
391 if ( !token.
Icmp(
"shockwave" ) ) {
393 FXAction.
data = token;
401 src.
Warning(
"FX File: bad token" );
426 if ( token ==
"}" ) {
430 if ( !token.
Icmp(
"bindto" ) ) {
436 if ( !token.
Icmp(
"{" ) ) {
460 "\t\t" "duration\t5\n"
461 "\t\t" "model\t\t_default\n"
int GetLineNum(void) const
idMat3 ToMat3(void) const
virtual void List(void) const
virtual const idSoundShader * FindSound(const char *name, bool makeDefault=true)=0
idMat3 mat3_identity(idVec3(1, 0, 0), idVec3(0, 1, 0), idVec3(0, 0, 1))
void void bool HadError(void) const
const char * GetFileName(void) const
const int DECL_LEXER_FLAGS
virtual size_t Size(void) const
const char * GetName(void) const
virtual const idMaterial * FindMaterial(const char *name, bool makeDefault=true)=0
float ParseFloat(bool *errorFlag=NULL)
int Icmp(const char *text) const
virtual void FreeData(void)
idVec3 vec3_origin(0.0f, 0.0f, 0.0f)
virtual void Print(void) const
virtual idRenderModel * FindModel(const char *modelName)=0
virtual const idDecl * FindType(declType_t type, const char *name, bool makeDefault=true)=0
virtual bool Parse(const char *text, const int textLength)
GLubyte GLubyte GLubyte a
virtual void Printf(const char *fmt,...) id_attribute((format(printf
int LoadMemory(const char *ptr, int length, const char *name, int startLine=1)
idDeclManager * declManager
int ExpectTokenString(const char *string)
int Append(const type &obj)
void void Warning(const char *str,...) id_attribute((format(printf
virtual const char * DefaultDefinition(void) const
idRenderModelManager * renderModelManager
bool particleTrackVelocity
idList< idFXSingleAction > events
idMat3 ToMat3(void) const
int SkipUntilString(const char *string)
int ReadToken(idToken *token)
void ParseSingleFXAction(idLexer &src, idFXSingleAction &FXAction)