public RoomViewModel Clone() { var additionalRoomParameters = AdditionalRoomParameters.Clone(); return(new RoomViewModel(Room, additionalRoomParameters, Exits, Zone, _allActionDescriptions) { _actionsViewModel = ActionsViewModel.Clone(additionalRoomParameters.ActionsToExecuteOnRoomEntry) }); }
public AliasViewModel Clone() { var clonedAlias = new CommandAlias(); return(new AliasViewModel(AllGroups, AliasGroup, clonedAlias, _actionDescriptions) { ActionsViewModel = ActionsViewModel.Clone(clonedAlias.Actions), Command = Command }); }
public HotkeyViewModel Clone() { var clonedHotkey = new Hotkey(); return(new HotkeyViewModel(AllGroups, HotkeyGroup, clonedHotkey, _actionDescriptions) { Key = Key, ModifierKeys = ModifierKeys, ActionsViewModel = ActionsViewModel.Clone(clonedHotkey.Actions) }); }
public GlobalHotkeyViewModel Clone() { var clonedHotkey = new Hotkey() { Key = Key, ModifierKeys = ModifierKeys }; return(new GlobalHotkeyViewModel(clonedHotkey, _actionDescriptions) { Key = Key, ModifierKeys = ModifierKeys, ActionsViewModel = ActionsViewModel.Clone(clonedHotkey.Actions) }); }