コード例 #1
0
 public AvalonHelperModel(IAvalonGame game, IWebServerRequest request)
 {
     GameStatus          = game.GetGameStatus();
     UserStatus          = game.GetUserStatus(request.User);
     Players             = game.GetPlayerList();
     CanStartGameMessage = game.CanStartGame();
     Roles = game.GetRevealedRoles();
 }
コード例 #2
0
ファイル: SetUpController.cs プロジェクト: Feefa/GameServer
        public AvalonHelperModel SelectRole(int roleId)
        {
            if (game.GetUserStatus(Request.User).RoleId == 0)
            {
                game.SelectRole(Request.User, roleId);
            }

            Request.ViewTemplateName = "Player";
            return(Player());
        }
コード例 #3
0
 public UserStatusModel GetUserStatus(IUser user)
 {
     return(baseGame.GetUserStatus(user));
 }