mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-13 02:48:19 +00:00
feat: Mission Component debug (#1901)
* feat: Mission Component debug * Add player argument to inspect command * Add completion details * Remove unlocalized server string done on client instead
This commit is contained in:
@@ -270,6 +270,12 @@ bool Mission::IsReadyToComplete() const {
|
||||
return m_State == eMissionState::READY_TO_COMPLETE || m_State == eMissionState::COMPLETE_READY_TO_COMPLETE;
|
||||
}
|
||||
|
||||
bool Mission::IsFailed() const {
|
||||
const auto underlying = GeneralUtils::ToUnderlying(m_State);
|
||||
const auto target = GeneralUtils::ToUnderlying(eMissionState::FAILED);
|
||||
return (underlying & target) != 0;
|
||||
}
|
||||
|
||||
void Mission::MakeReadyToComplete() {
|
||||
SetMissionState(m_Completions == 0 ? eMissionState::READY_TO_COMPLETE : eMissionState::COMPLETE_READY_TO_COMPLETE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user