public GameScreen(IUIService uiService, IUIViewModelFactory vmFactory, GraphicsDevice graphics) { _uiService = uiService; _vmFactory = vmFactory; _graphics = graphics; }
public JoinServerUIViewModel(IUIService uiService, IUIViewModelFactory vmFactory) { _uiService = uiService; _vmFactory = vmFactory; BackCommand = new RelayCommand(Back); JoinServerCommand = new RelayCommand(JoinServer); }
public SettingsUIViewModel(IUIService uiService, IUIViewModelFactory vmFactory) { _uiService = uiService; _vmFactory = vmFactory; BackCommand = new RelayCommand(Back); SaveCommand = new RelayCommand(Save); }
public MainMenuScreen(IUIViewModelFactory viewModelFactory, IUIService uiService, IClientNetworkService networkService, IScreenService screenService) { _uiViewModelFactory = viewModelFactory; _uiService = uiService; _screenService = screenService; networkService.BindPacketAction <CharacterAddedToWorldPacket>(OnCharacterAddedToWorldPacket); }
public MainMenuUIViewModel(Game game, IUIService uiService, IUIViewModelFactory vmFactory, IUserProfile userProfile) { _game = game; _uiService = uiService; _vmFactory = vmFactory; JoinServerCommand = new RelayCommand(JoinServer); DirectConnectCommand = new RelayCommand(DirectConnect); GameSettingsCommand = new RelayCommand(GameSettings); ExitButtonCommand = new RelayCommand(ExitApplication); WelcomeText = "Welcome to Ceriyo, " + userProfile.Username + "!"; }
public RegisterUIViewModel(IUIService uiService, IUIViewModelFactory vmFactory, ILogger logger) { _uiService = uiService; _vmFactory = vmFactory; _logger = logger; RegisterCommand = new RelayCommand(Register); CancelCommand = new RelayCommand(Cancel); _validator = new RegisterUIViewModelValidator(); IsEnabled = true; Username = string.Empty; Password = string.Empty; ConfirmPassword = string.Empty; Email = string.Empty; }
public AccountHelpUIViewModel( IUIService uiService, IUIViewModelFactory vmFactory, ILogger logger) { _uiService = uiService; _vmFactory = vmFactory; _logger = logger; ConfirmCommand = new RelayCommand(Confirm); BackCommand = new RelayCommand(Back); ConfirmCloseCommand = new RelayCommand(ConfirmClose); _validator = new AccountHelpUIViewModelValidator(); IsEnabled = true; BuildHelpOptions(); }
public CharacterCreationUIViewModel(IUIService uiService, IUIViewModelFactory vmFactory, IClientNetworkService networkService) { _uiService = uiService; _vmFactory = vmFactory; _networkService = networkService; CreateCharacterCommand = new RelayCommand(CreateCharacter); BackCommand = new RelayCommand(Back); DisconnectCommand = new RelayCommand(Disconnect); _networkService.BindPacketAction <CharacterCreatedPacket>(OnCharacterCreatedPacket); _networkService.BindPacketAction <CharacterCreationDataPacket>(OnCharacterCreationDataPacket); Classes = new List <ClassData>(); RequestData(); }
public LoginUIViewModel(Game game, IUIService uiService, IUIViewModelFactory vmFactory, IUserProfile userProfile, ILogger logger) { _game = game; _uiService = uiService; _vmFactory = vmFactory; _userProfile = userProfile; _logger = logger; LoginCommand = new RelayCommand(Login); CreateAccountCommand = new RelayCommand(CreateAccount); AccountHelpCommand = new RelayCommand(AccountHelp); ExitCommand = new RelayCommand(Exit); _validator = new LoginUIViewModelValidator(); IsEnabled = true; }
public CharacterSelectionUIViewModel(IUIService uiService, IUIViewModelFactory vmFactory, IClientNetworkService networkService) { _uiService = uiService; _vmFactory = vmFactory; _networkService = networkService; PCs = new ObservableCollection <PCTransferObject>(); CreateCharacterCommand = new RelayCommand(CreateCharacter); DeleteCharacterCommand = new RelayCommand(DeleteCharacter); DisconnectCommand = new RelayCommand(Disconnect); JoinServerCommand = new RelayCommand(JoinServer); ConfirmDeleteCharacterCommand = new RelayCommand(ConfirmDeleteCharacter); DeleteFailureCommand = new RelayCommand(DeleteFailure); _characterCreationVM = _vmFactory.Create <CharacterCreationUIViewModel>(); _characterCreationVM.CharacterSelectionVM = this; _networkService.BindPacketAction <CharacterDeletedPacket>(OnCharacterDeletedPacket); }
public DirectConnectUIViewModel(IUIService uiService, IUIViewModelFactory vmFactory, IClientNetworkService networkService, IPathService pathService) { _uiService = uiService; _vmFactory = vmFactory; _networkService = networkService; _pathService = pathService; BackCommand = new RelayCommand(Back); ConnectCommand = new RelayCommand(Connect); _networkService.BindPacketAction <ConnectedToServerPacket>(OnConnectedToServerPacket); // DEBUGGING IPAddress = "127.0.0.1"; // localhost for testing Port = 5121; // Default Port // END DEBUGGING }