- Added global constants to DECORATE so that I can define meaningful flag
names for some DECORATE functions. Technically these will be constants of the AActor class but that will make them accessible in all other actor classes. SVN r397 (trunk)
This commit is contained in:
parent
a537d1a115
commit
63bd2125f3
11 changed files with 62 additions and 18 deletions
|
|
@ -2561,6 +2561,23 @@ static void ActorConstDef (AActor *defaults, Baggage &bag)
|
|||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// ParseGlobalConst
|
||||
//
|
||||
// Parses a constant outside an actor definition
|
||||
// These will be inserted into AActor's symbol table
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void ParseGlobalConst()
|
||||
{
|
||||
Baggage bag;
|
||||
|
||||
bag.Info = RUNTIME_CLASS(AActor)->ActorInfo;
|
||||
ActorConstDef(GetDefault<AActor>(), bag);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// ActorActionDef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue