Support for failing a MoveTurnChoice in Angelscript.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5334ad14da
commit
46538092bf
|
@ -39,6 +39,12 @@ void RegisterTurnChoices::RegisterMoveTurnChoice(asIScriptEngine* engine) {
|
|||
GetAttack);
|
||||
REGISTER_GETTER("MoveTurnChoice", "int8 get_Priority() const property", CreatureLib::Battling::AttackTurnChoice,
|
||||
GetPriority);
|
||||
REGISTER_GETTER("MoveTurnChoice", "bool get_HasFailed() const property", CreatureLib::Battling::AttackTurnChoice,
|
||||
HasFailed);
|
||||
|
||||
r = engine->RegisterObjectMethod("MoveTurnChoice", "void Fail()",
|
||||
asMETHOD(CreatureLib::Battling::AttackTurnChoice, Fail), asCALL_THISCALL);
|
||||
Ensure(r >= 0);
|
||||
|
||||
r = engine->RegisterObjectMethod(
|
||||
"BaseTurnChoice", "MoveTurnChoice@ opCast()",
|
||||
|
|
Loading…
Reference in New Issue