iw4x-client/src/Components/Modules/Script.hpp
2016-08-15 16:40:30 +02:00

37 lines
864 B
C++

namespace Components
{
class Script : public Component
{
public:
Script();
~Script();
#ifdef DEBUG
const char* GetName() { return "Script"; };
#endif
static int LoadScriptAndLabel(std::string script, std::string label);
private:
static std::string ScriptName;
static std::vector<int> ScriptHandles;
static std::vector<std::string> ScriptNameStack;
static unsigned short FunctionName;
static void CompileError(unsigned int offset, const char* message, ...);
static void PrintSourcePos(const char* filename, unsigned int offset);
static void FunctionError();
static void StoreFunctionNameStub();
static void StoreScriptName(const char* name);
static void StoreScriptNameStub();
static void RestoreScriptName();
static void RestoreScriptNameStub();
static void LoadGameType();
static void LoadGameTypeScript();
};
}