Beispiel #1
0
        public void Create(ServerNetwork serverNetwork, int maxLobbyCount, int maxLobbyUserCount)
        {
            ServerNetworkRef = serverNetwork;

            var totalUserCount = maxLobbyCount * maxLobbyUserCount;

            UserManager = new ConnectUserManager();
            UserManager.Init(totalUserCount);

            LobbyMgr = new LobbyManager();
            LobbyMgr.CreateLobby(ServerNetworkRef, maxLobbyCount, maxLobbyUserCount);

            RegistPacketHandler();
        }
Beispiel #2
0
        public void Create(ServerNetwork serverNetwork, int maxLobbyCount, int maxLobbyUserCount)
        {
            ServerNetworkRef = serverNetwork;

            var totalUserCount = maxLobbyCount * maxLobbyUserCount;

            UserManager = new ConnectUserManager();
            UserManager.Init(totalUserCount);

            LobbyMgr = new LobbyManager();
            LobbyMgr.CreateLobby(ServerNetworkRef, maxLobbyCount, maxLobbyUserCount);


            RegistPacketHandler();
        }
Beispiel #3
0
 public void Init(ServerNetwork serverNetwork, ConnectUserManager userManager, LobbyManager lobbyManager)
 {
     ServerNetworkRef = serverNetwork;
     UserManagerRef = userManager;
     LobbyManagerRef = lobbyManager;
 }
Beispiel #4
0
 public void Init(ServerNetwork serverNetwork, ConnectUserManager userManager, LobbyManager lobbyManager)
 {
     ServerNetworkRef = serverNetwork;
     UserManagerRef   = userManager;
     LobbyManagerRef  = lobbyManager;
 }