コード例 #1
0
        public static async Task <FiveStarRoom> StartGame(this FiveStarRoomComponent fiveStarRoomComponent, M2S_StartGame m2SStartGame)
        {
            try
            {
                FiveStarRoom fiveStarRoom = await FiveStarRoomFactory.Create(m2SStartGame);

                fiveStarRoomComponent.pJoyLdsRoomDic[fiveStarRoom.RoomId] = fiveStarRoom;
                fiveStarRoomComponent.RoomIds.Add(fiveStarRoom.RoomId);
                fiveStarRoom.StartGame();
                return(fiveStarRoom);
            }
            catch (Exception e)
            {
                Log.Error(e);
                throw;
            }
        }