public void AddStatus(Enum.ClientStatus _status, int _value, long _timeout) { var timeout = _timeout > 0 ? Common.Clock + _timeout : 0; if (ClientStatuses.ContainsKey(_status)) { ClientStatuses[_status].Value = _value; ClientStatuses[_status].Timeout = timeout; } else { var status = new Structures.ClientStatus(_status, _value, timeout); ClientStatuses.TryAdd(_status, status); CombatStats.AddClientStatusStats(status); } }
public bool HasStatus(Enum.ClientStatus _status) { return(ClientStatuses.ContainsKey(_status)); }