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(); }
public void Init(ServerNetwork serverNetwork, ConnectUserManager userManager, LobbyManager lobbyManager) { ServerNetworkRef = serverNetwork; UserManagerRef = userManager; LobbyManagerRef = lobbyManager; }