public void SetFlag(STATUS_FLAGS flg, bool isEnable) { if (isEnable) { Status |= flg; } else { Status &= ~flg; } }
public bool HasFlag(STATUS_FLAGS flg) { return((Status & flg) == flg); }
public void SetInfected() { m_StatusFlags |= STATUS_FLAGS.INFECTED; RoundManager.Instance.IncreaseInfectedCount(); }
public void SetWearingPPE() { m_StatusFlags |= STATUS_FLAGS.PPE_EQUIPPED; }
// Todo: Move flags to their own StatusFlags class or similar and tidy up private void ClearStatusFlags() { m_StatusFlags = STATUS_FLAGS.NORMAL; }