コード例 #1
0
 public TeamsController(GameControllerContext context, IGameControllerTeam teams, IGameControllerWaypoint waypoints, IGameControllerAdventureSession sessions)
 {
     _context   = context;
     _teams     = teams;
     _waypoints = waypoints;
     _sessions  = sessions;
 }
コード例 #2
0
        private static void ComboBoxOnSelectionChanged(object sender, SelectionChangedEventArgs selectionChangedEventArgs)
        {
            IGameViewModel gameViewModel = (sender as ComboBox).DataContext as IGameViewModel;

            var selectedGame = (KeyValuePair <string, IGame>)(selectionChangedEventArgs.AddedItems[0]);

            IGameControllerContext gameControllerContext = new GameControllerContext {
                Game = selectedGame.Value, GameMode = gameViewModel.GameMode
            };

            gameViewModel.GameControllerCommand.Execute(gameControllerContext);

            gameViewModel.StartGameCommand.Execute(gameViewModel.GameMode);
        }
コード例 #3
0
 public MessagesController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #4
0
 public AdventureSessionsController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #5
0
 public ChallengesController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #6
0
 public GameControllerAdventureSessionService(GameControllerContext context)
 {
     _context = context;
 }
コード例 #7
0
 public StudentsManagementController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #8
0
 public WaypointsController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #9
0
 public MapsController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #10
0
 public StudentsController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #11
0
 public LocationController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #12
0
 public AdventuresManagementController(GameControllerContext context)
 {
     _context = context;
 }
 public ChallengesManagementController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #14
0
 public AdventureMapsController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #15
0
 public GameControllerTeamService(GameControllerContext context)
 {
     _context = context;
 }
コード例 #16
0
 public SubmissionsController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #17
0
 public GameControllerWaypointService(GameControllerContext context)
 {
     _context = context;
 }
コード例 #18
0
 public WaypointsManagementController(GameControllerContext context)
 {
     _context = context;
 }
コード例 #19
0
 public MessagesManagementController(GameControllerContext context)
 {
     _context = context;
 }