- allow defining flags in the script declaration of a class and do that for Weapon.
This commit is contained in:
parent
b5c4ab8c47
commit
70d3c31551
14 changed files with 207 additions and 35 deletions
|
|
@ -134,6 +134,7 @@ enum EZCCTreeNodeType
|
|||
AST_ClassCast,
|
||||
AST_StaticArrayStatement,
|
||||
AST_Property,
|
||||
AST_FlagDef,
|
||||
|
||||
NUM_AST_NODE_TYPES
|
||||
};
|
||||
|
|
@ -226,6 +227,12 @@ struct ZCC_Property : ZCC_NamedNode
|
|||
ZCC_TreeNode *Body;
|
||||
};
|
||||
|
||||
struct ZCC_FlagDef : ZCC_NamedNode
|
||||
{
|
||||
ENamedName RefName;
|
||||
int BitValue;
|
||||
};
|
||||
|
||||
struct ZCC_Class : ZCC_Struct
|
||||
{
|
||||
ZCC_Identifier *ParentName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue