mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 17:32:26 +00:00
DECORATE cleanup
- Remove some ExpVal stuff that wasn't used.
This commit is contained in:
parent
2f7183b937
commit
956d754804
2 changed files with 0 additions and 27 deletions
|
@ -164,36 +164,10 @@ struct ExpVal
|
|||
return (Type == VAL_Int || Type == VAL_Sound) ? !!Int : Type == VAL_Float? Float!=0. : false;
|
||||
}
|
||||
|
||||
template<class T> T *GetPointer() const
|
||||
{
|
||||
return Type == VAL_Object || Type == VAL_Pointer? (T*)pointer : NULL;
|
||||
}
|
||||
|
||||
FSoundID GetSoundID() const
|
||||
{
|
||||
return Type == VAL_Sound? Int : 0;
|
||||
}
|
||||
|
||||
int GetColor() const
|
||||
{
|
||||
return Type == VAL_Color? Int : 0;
|
||||
}
|
||||
|
||||
FName GetName() const
|
||||
{
|
||||
return Type == VAL_Name? ENamedName(Int) : NAME_None;
|
||||
}
|
||||
|
||||
FState *GetState() const
|
||||
{
|
||||
return Type == VAL_State? (FState*)pointer : NULL;
|
||||
}
|
||||
|
||||
const PClass *GetClass() const
|
||||
{
|
||||
return Type == VAL_Class? (const PClass *)pointer : NULL;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
struct ExpEmit
|
||||
|
|
|
@ -14,7 +14,6 @@ enum ExpValType
|
|||
VAL_Array, // Array (very limited right now)
|
||||
VAL_Object, // Object reference
|
||||
VAL_Class, // Class reference
|
||||
VAL_Pointer, // Dereferenced variable (only used for addressing arrays for now.)
|
||||
VAL_Sound, // Sound identifier. Internally it's an int.
|
||||
VAL_Name, // A Name
|
||||
VAL_String, // A string
|
||||
|
|
Loading…
Reference in a new issue