backend update from Raze.
Mainly a VMFunction script type and some associated utilities.
This commit is contained in:
parent
06466b9017
commit
79f2fc6553
13 changed files with 79 additions and 3 deletions
|
|
@ -50,6 +50,7 @@ bool isActor(PContainerType *type);
|
|||
void AddActorInfo(PClass *cls);
|
||||
int GetIntConst(FxExpression* ex, FCompileContext& ctx);
|
||||
double GetFloatConst(FxExpression* ex, FCompileContext& ctx);
|
||||
VMFunction* GetFuncConst(FxExpression* ex, FCompileContext& ctx);
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
|
|
@ -282,6 +283,10 @@ void ZCCDoomCompiler::DispatchProperty(FPropertyInfo *prop, ZCC_PropertyStmt *pr
|
|||
conv.d = GetFloatConst(ex, ctx);
|
||||
break;
|
||||
|
||||
case 'G':
|
||||
conv.fu = GetFuncConst(ex, ctx);
|
||||
break;
|
||||
|
||||
case 'Z': // an optional string. Does not allow any numeric value.
|
||||
if (ex->ValueType != TypeString)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue