30 using namespace AngelScript;
46 engine->RegisterEnum(
"TokenType");
47 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_NONE", (
int)
TokenType::NONE);
50 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_STRING", (
int)
TokenType::STRING);
51 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_NUMBER", (
int)
TokenType::NUMBER);
52 engine->RegisterEnumValue(
"TokenType",
"TOKEN_TYPE_BOOL", (
int)
TokenType::BOOL);
57 engine->RegisterEnum(
"GenericDocumentOptions");
71 engine->RegisterObjectBehaviour(
"GenericDocumentClass", asBEHAVE_FACTORY,
"GenericDocumentClass@+ f()", asFUNCTION(
GenericDocumentFactory), asCALL_CDECL);
73 engine->RegisterObjectMethod(
"GenericDocumentClass",
"bool loadFromResource(string,string,int)", asMETHOD(
GenericDocument, loadFromResource), asCALL_THISCALL);
74 engine->RegisterObjectMethod(
"GenericDocumentClass",
"bool saveToResource(string,string)", asMETHOD(
GenericDocument, saveToResource), asCALL_THISCALL);
81 engine->RegisterObjectBehaviour(
"GenericDocContextClass", asBEHAVE_FACTORY,
"GenericDocContextClass@+ f(GenericDocumentClassPtr @)", asFUNCTION(
GenericDocContextFactory), asCALL_CDECL);
83 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool moveNext()", asMETHOD(
GenericDocContext, moveNext), asCALL_THISCALL);
84 engine->RegisterObjectMethod(
"GenericDocContextClass",
"uint getPos()", asMETHOD(
GenericDocContext, getPos), asCALL_THISCALL);
85 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool seekNextLine()", asMETHOD(
GenericDocContext, seekNextLine), asCALL_THISCALL);
86 engine->RegisterObjectMethod(
"GenericDocContextClass",
"uint countLineArgs()", asMETHOD(
GenericDocContext, countLineArgs), asCALL_THISCALL);
87 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool endOfFile(int offset = 0)", asMETHOD(
GenericDocContext, endOfFile), asCALL_THISCALL);
88 engine->RegisterObjectMethod(
"GenericDocContextClass",
"TokenType tokenType(int offset = 0)", asMETHOD(
GenericDocContext, tokenType), asCALL_THISCALL);
90 engine->RegisterObjectMethod(
"GenericDocContextClass",
"string getTokString(int offset = 0)", asMETHOD(
GenericDocContext, getTokString), asCALL_THISCALL);
91 engine->RegisterObjectMethod(
"GenericDocContextClass",
"float getTokFloat(int offset = 0)", asMETHOD(
GenericDocContext, getTokFloat), asCALL_THISCALL);
92 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool getTokBool(int offset = 0)", asMETHOD(
GenericDocContext, getTokBool), asCALL_THISCALL);
93 engine->RegisterObjectMethod(
"GenericDocContextClass",
"string getTokKeyword(int offset = 0)", asMETHOD(
GenericDocContext, getTokKeyword), asCALL_THISCALL);
94 engine->RegisterObjectMethod(
"GenericDocContextClass",
"string getTokComment(int offset = 0)", asMETHOD(
GenericDocContext, getTokComment), asCALL_THISCALL);
96 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool isTokString(int offset = 0)", asMETHOD(
GenericDocContext, isTokString), asCALL_THISCALL);
97 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool isTokFloat(int offset = 0)", asMETHOD(
GenericDocContext, isTokFloat), asCALL_THISCALL);
98 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool isTokBool(int offset = 0)", asMETHOD(
GenericDocContext, isTokBool), asCALL_THISCALL);
99 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool isTokKeyword(int offset = 0)", asMETHOD(
GenericDocContext, isTokKeyword), asCALL_THISCALL);
100 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool isTokComment(int offset = 0)", asMETHOD(
GenericDocContext, isTokComment), asCALL_THISCALL);
103 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool insertToken(int offset = 0)", asMETHOD(
GenericDocContext, insertToken), asCALL_THISCALL);
104 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool eraseToken(int offset = 0)", asMETHOD(
GenericDocContext, eraseToken), asCALL_THISCALL);
106 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool setTokString(int offset, const string &in)", asMETHOD(
GenericDocContext, setTokString), asCALL_THISCALL);
107 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool setTokFloat(int offset, float)", asMETHOD(
GenericDocContext, setTokFloat), asCALL_THISCALL);
108 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool setTokBool(int offset, bool)", asMETHOD(
GenericDocContext, setTokBool), asCALL_THISCALL);
109 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool setTokKeyword(int offset, const string &in)", asMETHOD(
GenericDocContext, setTokKeyword), asCALL_THISCALL);
110 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool setTokComment(int offset, const string &in)", asMETHOD(
GenericDocContext, setTokComment), asCALL_THISCALL);
111 engine->RegisterObjectMethod(
"GenericDocContextClass",
"bool setTokLineBreak(int offset)", asMETHOD(
GenericDocContext, setTokBool), asCALL_THISCALL);