- added an accessor to the actor defaults. This might have been possible with less work using a function but that would have necessitated some type casts when using it on subclasses.

- scriptified A_BarrelDestroy to test the above.
This commit is contained in:
Christoph Oelckers 2016-11-05 17:14:16 +01:00
commit 98fa3d2d93
8 changed files with 157 additions and 24 deletions

View file

@ -355,12 +355,14 @@ public:
class FxClassDefaults : public FxExpression
{
FxExpression *obj;
bool EmitTail;
public:
FxClassDefaults(FxExpression*, const FScriptPosition &);
FxClassDefaults(FxExpression *, const FScriptPosition &);
~FxClassDefaults();
PPrototype *ReturnProto();
FxExpression *Resolve(FCompileContext&);
bool IsDefaultObject() const;
ExpEmit Emit(VMFunctionBuilder *build);
};
//==========================================================================