allow Lua expressions in ActorCommand parameters

This commit is contained in:
Chris Danford
2004-11-05 06:43:12 +00:00
parent 012ead80fd
commit bc184683ca
4 changed files with 14 additions and 14 deletions
+6 -6
View File
@@ -7,19 +7,19 @@
struct ParsedCommandToken
{
void Set( const CString &sToken ); // fill in all the different types
void Set( const CString &sParam ); // fill in all the different types
CString s;
float f;
int i;
bool b;
RageColor c; // HTML-type color which is packed into one parameter
bool bColorIsValid; // true if c is a valid HTML-type color
// true if c is a valid HTML-type color. Otherwise, this value is the red component
// and the next 3 params are the other components.
bool bColorIsValid;
operator const CString () const { return s; };
operator const float () const { return f; };
operator const int () const { return i; };
operator const bool () const { return b; };
operator const int () const { return (int)f; };
operator const bool () const { return ((int)f)!=0; };
operator const RageColor () const { return c; };
};