public void addPoseCommandAction(PoseCommandAction action, String mode) { PoseCommand command; if (!modePoseCommands.TryGetValue(mode, out command)) { command = new PoseCommand(); modePoseCommands.Add(mode, command); } command.addAction(action); }
public void removePoseCommandAction(PoseCommandAction action, String mode) { PoseCommand command; if (modePoseCommands.TryGetValue(mode, out command)) { command.removeAction(action); if (command.IsEmpty) { modePoseCommands.Remove(mode); } } }
internal void removeAction(PoseCommandAction action) { actions.Remove(action); }
internal void addAction(PoseCommandAction action) { actions.Add(action); }