mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
33 lines
1.5 KiB
C
33 lines
1.5 KiB
C
|
#pragma once
|
||
|
#include "zcc_compile.h"
|
||
|
|
||
|
void SetImplicitArgs(TArray<PType*>* args, TArray<uint32_t>* argflags, TArray<FName>* argnames, PContainerType* cls, uint32_t funcflags, int useflags);
|
||
|
|
||
|
class ZCCRazeCompiler : public ZCCCompiler
|
||
|
{
|
||
|
public:
|
||
|
ZCCRazeCompiler(ZCC_AST &tree, DObject *outer, PSymbolTable &symbols, PNamespace *outnamespace, int lumpnum, const VersionInfo & ver)
|
||
|
: ZCCCompiler(tree, outer, symbols, outnamespace, lumpnum, ver)
|
||
|
{}
|
||
|
int Compile() override;
|
||
|
protected:
|
||
|
bool PrepareMetaData(PClass *type) override;
|
||
|
void SetImplicitArgs(TArray<PType*>* args, TArray<uint32_t>* argflags, TArray<FName>* argnames, PContainerType* cls, uint32_t funcflags, int useflags) override
|
||
|
{
|
||
|
::SetImplicitArgs(args, argflags, argnames, cls, funcflags, useflags);
|
||
|
}
|
||
|
private:
|
||
|
void CompileAllProperties();
|
||
|
bool CompileProperties(PClass *type, TArray<ZCC_Property *> &Properties, FName prefix);
|
||
|
bool CompileFlagDefs(PClass *type, TArray<ZCC_FlagDef *> &Properties, FName prefix);
|
||
|
void DispatchProperty(FPropertyInfo *prop, ZCC_PropertyStmt *property, DCoreActor *defaults, Baggage &bag);
|
||
|
void DispatchScriptProperty(PProperty *prop, ZCC_PropertyStmt *property, DCoreActor *defaults, Baggage &bag);
|
||
|
void ProcessDefaultProperty(PClassActor *cls, ZCC_PropertyStmt *prop, Baggage &bag);
|
||
|
void ProcessDefaultFlag(PClassActor *cls, ZCC_FlagStmt *flg);
|
||
|
void InitDefaults() override final;
|
||
|
int CheckActionKeyword(ZCC_FuncDeclarator *f, uint32_t &varflags, int useflags, ZCC_StructWork *c);
|
||
|
|
||
|
};
|
||
|
|
||
|
|