Ejemplo n.º 1
0
        public RoomViewModel Clone()
        {
            var additionalRoomParameters = AdditionalRoomParameters.Clone();

            return(new RoomViewModel(Room, additionalRoomParameters, Exits, Zone, _allActionDescriptions)
            {
                _actionsViewModel = ActionsViewModel.Clone(additionalRoomParameters.ActionsToExecuteOnRoomEntry)
            });
        }
Ejemplo n.º 2
0
        public AliasViewModel Clone()
        {
            var clonedAlias = new CommandAlias();

            return(new AliasViewModel(AllGroups, AliasGroup, clonedAlias, _actionDescriptions)
            {
                ActionsViewModel = ActionsViewModel.Clone(clonedAlias.Actions),
                Command = Command
            });
        }
Ejemplo n.º 3
0
        public HotkeyViewModel Clone()
        {
            var clonedHotkey = new Hotkey();

            return(new HotkeyViewModel(AllGroups, HotkeyGroup, clonedHotkey, _actionDescriptions)
            {
                Key = Key,
                ModifierKeys = ModifierKeys,
                ActionsViewModel = ActionsViewModel.Clone(clonedHotkey.Actions)
            });
        }
Ejemplo n.º 4
0
        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)
            });
        }