public void PlayAction(IEnumerable <PalCommand> commands) { Timer = 0.0f; Action = new PalAction() { Name = "dummy", Commands = commands.ToList() }; }
public void PlayAction(PalAction action) { Timer = 0.0f; Action = new PalAction() { Name = "dummy", Commands = action?.Commands }; }
public CommandsViewModel(PalAction action) : base(action.Commands.Select(x => new CommandModel(x))) { Action = action; }