69 enabledWarnings.clear();
101 assert(func_chain != func);
112 assert(func_chain->
OwnerOverloaded &&
"Removed function not found in inheritance chain");
130 if (plist->
Delete())
delete plist;
196 tempScript.
Copy(szData);
235 if (ParentGrp.
Open(szParentPath))
252 ParserPropList(
C4PropList::NewStatic(nullptr, nullptr, parent_key_name))
291 int Plane;
bool gotplane =
true;
338 DebugLog(
"ERROR: Attempt to set Scenario.Prototype.");
const int32_t C4D_Foreground
const int32_t C4D_SortLimit
const int32_t C4D_Background
const int32_t C4D_Structure
const int32_t C4D_StaticBack
const int32_t C4Plane_Structure
const int32_t C4D_Vehicle
C4AulScriptEngine ScriptEngine
bool DebugLog(const char *strMessage)
C4GameScriptHost GameScript
C4Value C4VFunction(C4AulFunc *pFn)
C4Value C4VInt(int32_t i)
C4Value C4VPropList(C4PropList *p)
bool SEqualNoCase(const char *szStr1, const char *szStr2, int iLen)
bool GetParentPath(const char *szFilename, char *szBuffer)
C4RefCntPointer< C4String > Name
virtual C4AulScriptFunc * SFunc()
C4PropListStatic * Parent
C4PropListStatic * GetPropList()
void RegisterGlobalConstant(const char *szName, const C4Value &rValue)
C4AulFunc * OwnerOverloaded
C4AulScriptFunc * SFunc() override
bool Load(C4Group &hGroup, const char *szFilename, const char *szLanguage=nullptr)
const StdStrBuf & GetDataBuf() const
const char * GetFilePath() const
C4PropListStatic * GetPropList() override
void Denumerate(C4ValueNumbers *) override
C4PropListStatic * GetPropList() override
C4Effect * pScenarioEffects
bool Load(C4Group &, const char *, const char *, C4LangStringTable *) override
C4Value Call(const char *szFunction, C4AulParSet *pPars=nullptr, bool fPassError=false)
void Denumerate(C4ValueNumbers *numbers)
~C4GameScriptHost() override
bool LoadData(const char *, const char *, C4LangStringTable *) override
bool Open(const char *group_name, bool do_create=false)
const std::string & Translate(const std::string &text) const
void ReplaceStrings(StdStrBuf &rBuf)
virtual class C4PropListStatic * IsStatic()
virtual bool GetPropertyByS(const C4String *k, C4Value *pResult) const
virtual void ResetProperty(C4String *k)
C4PropList * GetPrototype() const
C4Value Call(C4PropertyName k, C4AulParSet *pPars=nullptr, bool fPassErrors=false)
virtual void SetPropertyByS(C4String *k, const C4Value &to)
void SetProperty(C4PropertyName k, const C4Value &to)
static C4PropListStatic * NewStatic(C4PropList *prototype, const C4PropListStatic *parent, C4String *key)
C4PropListScen(const C4PropListStatic *parent, C4String *key)
void SetPropertyByS(C4String *k, const C4Value &to) override
StdStrBuf GetDataString() const
const char * GetName() const override
C4ScenarioObjectsScriptHost()
std::vector< C4Value > ownedPropLists
C4Set< C4Property > LocalValues
std::vector< C4Value > ownedFunctions
std::string Translate(const std::string &text) const
virtual bool Load(C4Group &hGroup, const char *szFilename, const char *szLanguage, C4LangStringTable *pLocalTable)
void DeleteOwnedPropLists()
virtual bool ReloadScript(const char *szPath, const char *szLanguage)
C4AulScriptEngine * Engine
C4LangStringTable * stringTable
void UnlinkOwnedFunctions()
std::list< StdCopyStrBuf > Appends
std::list< StdCopyStrBuf > Includes
virtual C4PropListStatic * GetPropList()
std::deque< C4ScriptHost * > SourceScripts
void Warn(const char *pMsg,...) GNUC_FORMAT_ATTRIBUTE_O
void Reg2List(C4AulScriptEngine *pEngine)
virtual bool LoadData(const char *szFilename, const char *szData, class C4LangStringTable *pLocalTable)
void SetPropList(C4PropList *PropList)
C4PropList * _getPropList() const
C4AulFunc * getFunction() const
void Denumerate(C4ValueNumbers *)
void Ref(const char *pnData)
const char * getData() const