Revert "Make Script functions use pointers for out variables, instead of references."
This reverts commit c3877e01
This commit is contained in:
parent
b02577554f
commit
e3bbc369fc
|
@ -31,16 +31,16 @@ namespace CreatureLib::Battling {
|
|||
|
||||
virtual void OnBeforeTurn(const BaseTurnChoice* choice){};
|
||||
|
||||
virtual void ChangeAttack(AttackTurnChoice* choice, std::string* attack){};
|
||||
virtual void PreventAttack(ExecutingAttack* attack, bool* result){};
|
||||
virtual void FailAttack(ExecutingAttack* attack, bool* failed){};
|
||||
virtual void ChangeAttack(AttackTurnChoice* choice, std::string& attack){};
|
||||
virtual void PreventAttack(ExecutingAttack* attack, bool& result){};
|
||||
virtual void FailAttack(ExecutingAttack* attack, bool& failed){};
|
||||
virtual void StopBeforeAttack(ExecutingAttack* attack){};
|
||||
virtual void OnBeforeAttack(ExecutingAttack* attack){};
|
||||
|
||||
virtual void FailIncomingAttack(ExecutingAttack* attack, Creature* target, bool* result){};
|
||||
virtual void IsInvulnerable(ExecutingAttack* attack, Creature* target, bool* result){};
|
||||
virtual void FailIncomingAttack(ExecutingAttack* attack, Creature* target, bool& result){};
|
||||
virtual void IsInvulnerable(ExecutingAttack* attack, Creature* target, bool& result){};
|
||||
virtual void OnAttackMiss(ExecutingAttack* attack, Creature* target){};
|
||||
virtual void ChangeAttackType(ExecutingAttack* attack, Creature* target, uint8_t hitNumber, uint8_t* type){};
|
||||
virtual void ChangeAttackType(ExecutingAttack* attack, Creature* target, uint8_t hitNumber, uint8_t& type){};
|
||||
virtual void OnStatusMove(const ExecutingAttack* attack, Creature* target, uint8_t hitNumber){};
|
||||
virtual void PreventSecondaryEffects(const ExecutingAttack* attack, Creature* target, uint8_t hitNumber,
|
||||
bool& result){};
|
||||
|
@ -48,7 +48,7 @@ namespace CreatureLib::Battling {
|
|||
|
||||
virtual void OnAfterHits(const ExecutingAttack* attack, Creature* target){};
|
||||
|
||||
virtual void PreventSelfSwitch(const SwitchTurnChoice* choice, bool* result){};
|
||||
virtual void PreventSelfSwitch(const SwitchTurnChoice* choice, bool& result){};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue