Fixed naming in AttackTurnChoice C Interface.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
436e68293e
commit
141f0338bf
|
@ -23,13 +23,15 @@ BORROWED_GET_FUNC(BaseTurnChoice, GetUser, Creature*)
|
|||
BORROWED_GET_FUNC(AttackTurnChoice, GetAttack, LearnedAttack*)
|
||||
SIMPLE_GET_FUNC(AttackTurnChoice, GetKind, TurnChoiceKind)
|
||||
|
||||
export uint8_t CreatureLib_BaseTurnChoice_GetPriority(int8_t& out, AttackTurnChoice* p) { Try(out = p->GetPriority()); }
|
||||
export uint8_t CreatureLib_AttackTurnChoice_GetPriority(int8_t& out, AttackTurnChoice* p) {
|
||||
Try(out = p->GetPriority());
|
||||
}
|
||||
|
||||
SMART_GET_FUNC(AttackTurnChoice, GetAttackScript, Script*)
|
||||
export uint8_t CreatureLib_BaseTurnChoice_GetTargetSideIndex(const AttackTurnChoice* p) {
|
||||
export uint8_t CreatureLib_AttackTurnChoice_GetTargetSideIndex(const AttackTurnChoice* p) {
|
||||
return p->GetTarget().GetSideIndex();
|
||||
}
|
||||
export uint8_t CreatureLib_BaseTurnChoice_GetTargetCreatureIndex(const AttackTurnChoice* p) {
|
||||
export uint8_t CreatureLib_AttackTurnChoice_GetTargetCreatureIndex(const AttackTurnChoice* p) {
|
||||
return p->GetTarget().GetCreatureIndex();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue