Update CreatureLib, added AddVolatile function to AngelScript.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-02-22 16:10:22 +01:00
parent 1f07ddc428
commit ed287f93db
3 changed files with 10 additions and 3 deletions

View File

@@ -17,8 +17,7 @@ void RegisterBattleClass::RegisterChoiceQueue(asIScriptEngine* engine) {
asCALL_THISCALL);
assert(r >= 0);
r = engine->RegisterObjectMethod("ChoiceQueue", "const BaseTurnChoice@ Peek() const",
asMETHOD(CreatureLib::Battling::ChoiceQueue, Peek),
asCALL_THISCALL);
asMETHOD(CreatureLib::Battling::ChoiceQueue, Peek), asCALL_THISCALL);
assert(r >= 0);
}
@@ -61,4 +60,8 @@ void RegisterBattleClass::RegisterBattle(asIScriptEngine* engine) {
r = engine->RegisterObjectMethod("Battle", "ChoiceQueue@ get_TurnQueue() const property",
asMETHOD(CreatureLib::Battling::Battle, GetCurrentTurnQueue), asCALL_THISCALL);
assert(r >= 0);
r = engine->RegisterObjectMethod(
"Battle", "void AddVolatile(const string &in name) const property",
asMETHODPR(CreatureLib::Battling::Battle, AddVolatileScript, (const std::string&), void), asCALL_THISCALL);
assert(r >= 0);
}

View File

@@ -175,4 +175,8 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
r = engine->RegisterObjectMethod("Pokemon", "int8 GetStatBoost(Statistic stat) const",
asMETHOD(PkmnLib::Battling::Pokemon, GetStatBoost), asCALL_THISCALL);
assert(r >= 0);
r = engine->RegisterObjectMethod(
"Pokemon", "void AddVolatile(const string &in name) const property",
asMETHODPR(PkmnLib::Battling::Pokemon, AddVolatileScript, (const std::string&), void), asCALL_THISCALL);
assert(r >= 0);
}