void AddEntry(ClientAction e) { bool found = false; for (int i = 0; i < m_entries.Count; ++i) { Entry entry = m_entries[i]; if (entry.ClientID == e.ClientID && entry.Action == e.Action) { m_entries[i].ChangeCreationTime(e.CreationTime); found = true; break; } } if (found) { ActionRemoved?.Invoke(e.ClientID, e.Action); } else { m_entries.Add(new Entry(e.ClientID, e.Action, e.CreationTime)); } ActionAdded.Invoke(e); }
public void removeSubAction(ShowPropSubAction subAction) { sequencer.removeAction(subAction); subAction._setShowProp(null); if (ActionRemoved != null) { ActionRemoved.Invoke(this, subAction); } }
public void removeAction(TimelineAction action) { action._setTimeline(null); sequencer.removeAction(action); if (ActionRemoved != null) { ActionRemoved.Invoke(this, new TimelineActionEventArgs(action, 0)); } }
void RemoveAction(TickTimerCancelToken token) { HashSet <TickTimerCancelToken> actions; if (_delays.TryGetValue(token.Timeout, out actions)) { if (actions.Remove(token)) { if (actions.Count == 0) { _delays.Remove(token.Timeout); } ActionRemoved?.Invoke(); } } }
public void DeleteAction(int algorithmNumber, int actionNumber) { algorithms[algorithmNumber].actions.RemoveAt(actionNumber); ActionRemoved?.Invoke(this, new RemoveActionEventArgs()); }