public LBSceneManager() { mCachedSceneMgr = new CachedObjectManager <LBScene>(ServerCommonDefine.PreCreateSceneCount); mSceneDic = new Dictionary <int, LBScene>(ServerCommonDefine.SceneDicCapacity); mRoomIdSceneIdDic = new Dictionary <int, int>(ServerCommonDefine.SceneDicCapacity); mPlayerIdSceneIdDic = new Dictionary <int, int>(ServerCommonDefine.SceneDicCapacity); }
public LBAccountManager() { mAccountCacheMgr = new CachedObjectManager <LBAccount>(ServerCommonDefine.PreCreateAccount); mAccountIdDic = new Dictionary <int, LBAccount>(ServerCommonDefine.AccountDicCapacity); mAccountNameDic = new Dictionary <string, LBAccount>(ServerCommonDefine.AccountDicCapacity); mPeerIdDic = new Dictionary <int, LBAccount>(ServerCommonDefine.AccountDicCapacity); }
public LBRoomManager() { mCachedRoom = new CachedObjectManager <LBRoom>(ServerCommonDefine.PreCreateRoomCount); mRoomDic = new Dictionary <int, LBRoom>(ServerCommonDefine.RoomDicCapacity); mPlayerIdRoomIdDic = new Dictionary <int, int>(); }
public LBPlayerManager() { mCacheManager = new CachedObjectManager <LBPlayer>(ServerCommonDefine.PreCreatePlayerCount); mPlayerDic = new Dictionary <int, LBPlayer>(ServerCommonDefine.PlayerDicCapacity); mPlayerConnectionDic = new Dictionary <int, LBPlayer>(ServerCommonDefine.PlayerDicCapacity); }