Change ReleaseToken to return bool
This commit is contained in:
parent
763c8db97e
commit
ca07abb131
|
@ -14,12 +14,14 @@ bool UNakatomiAIAttackTokenManager::RequestToken()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UNakatomiAIAttackTokenManager::ReleaseToken()
|
bool UNakatomiAIAttackTokenManager::ReleaseToken()
|
||||||
{
|
{
|
||||||
if (attackTokensUsed > 0)
|
if (attackTokensUsed > 0)
|
||||||
{
|
{
|
||||||
attackTokensUsed--;
|
attackTokensUsed--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UNakatomiAIAttackTokenManager::Reset()
|
void UNakatomiAIAttackTokenManager::Reset()
|
||||||
|
|
|
@ -25,7 +25,7 @@ public:
|
||||||
|
|
||||||
bool RequestToken();
|
bool RequestToken();
|
||||||
|
|
||||||
void ReleaseToken();
|
bool ReleaseToken();
|
||||||
|
|
||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue