- added a 'new' intrinsic to create new objects from inside scripts.
This is not tested yet and likely to not working correctly yet. Will be fixed once I get far enough to use it later.
This commit is contained in:
parent
d5962b290c
commit
8578a5a12e
6 changed files with 106 additions and 0 deletions
|
|
@ -242,6 +242,7 @@ enum EFxType
|
|||
EFX_Conditional,
|
||||
EFX_Abs,
|
||||
EFX_ATan2,
|
||||
EFX_New,
|
||||
EFX_MinMax,
|
||||
EFX_Random,
|
||||
EFX_RandomPick,
|
||||
|
|
@ -1176,6 +1177,26 @@ public:
|
|||
private:
|
||||
ExpEmit ToReg(VMFunctionBuilder *build, FxExpression *val);
|
||||
};
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
class FxNew : public FxExpression
|
||||
{
|
||||
FxExpression *val;
|
||||
|
||||
public:
|
||||
|
||||
FxNew(FxExpression *v);
|
||||
~FxNew();
|
||||
FxExpression *Resolve(FCompileContext&);
|
||||
|
||||
ExpEmit Emit(VMFunctionBuilder *build);
|
||||
};
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue