Make battle class fields all smart pointers.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
using namespace CreatureLib::Battling;
|
||||
|
||||
void TurnHandler::RunTurn(ChoiceQueue* queue) {
|
||||
void TurnHandler::RunTurn(ArbUt::BorrowedPtr<ChoiceQueue> queue) {
|
||||
AssertNotNull(queue)
|
||||
for (auto choice : queue->GetInnerQueue()) {
|
||||
HOOK(OnBeforeTurn, choice, choice);
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CreatureLib::Battling {
|
||||
static void ExecuteFleeChoice(ArbUt::BorrowedPtr<FleeTurnChoice> choice);
|
||||
|
||||
public:
|
||||
static void RunTurn(ChoiceQueue* queue);
|
||||
static void RunTurn(ArbUt::BorrowedPtr<ChoiceQueue> queue);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user