Add ConstString to several other places where context isn't changed much during runtime.
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:
@@ -119,7 +119,7 @@ void Battle::ValidateBattleState() {
|
||||
this->_battleResult = BattleResult::Conclusive(winningSide);
|
||||
this->_hasEnded = true;
|
||||
}
|
||||
void Battle::AddVolatileScript(const std::string& key) {
|
||||
void Battle::AddVolatileScript(const ConstString& key) {
|
||||
auto script = _volatile.Get(key);
|
||||
if (script != nullptr) {
|
||||
script->Stack();
|
||||
@@ -129,6 +129,6 @@ void Battle::AddVolatileScript(const std::string& key) {
|
||||
return _volatile.Add(script);
|
||||
}
|
||||
void Battle::AddVolatileScript(Script* script) { return _volatile.Add(script); }
|
||||
void Battle::RemoveVolatileScript(const std::string& name) { _volatile.Remove(name); }
|
||||
void Battle::RemoveVolatileScript(const ConstString& name) { _volatile.Remove(name); }
|
||||
void Battle::RemoveVolatileScript(Script* script) { _volatile.Remove(script->GetName()); }
|
||||
void Battle::HasVolatileScript(const std::string& name) const { _volatile.Has(name); }
|
||||
void Battle::HasVolatileScript(const ConstString& name) const { _volatile.Has(name); }
|
||||
|
||||
Reference in New Issue
Block a user