public bool Dequeue(out StateNotice stateNotice) { if (notices.Count == 0) { stateNotice = null; return(false); } stateNotice = notices.Dequeue(); return(true); }
public virtual bool OnNotice(StateNotice stateNotice) { // Implement in extended class return(false); }
public void Trigger(StateNotice stateNotice) { notices.Enqueue(stateNotice); }
public void TriggerNotice(StateNotice stateNotice) { noticeQueue.Trigger(stateNotice); }