public MainCharacterPack(string roleType, ICharacterCenter center) { username = GameManager.playerInfo.username; roleindex = GameManager.playerInfo.roleindex; coin = SqliteManager.GetRoleCoinWithID(username, roleindex); packDict = new Dictionary<string, IPack>(); IEquipPack equipPack = new EquipPack(username, roleindex, ConstConfig.EQUIP, roleType, center); wearInfo = equipPack; packDict.Add(ConstConfig.EQUIP, equipPack); packDict.Add(ConstConfig.CONSUME, new Pack(username, roleindex, ConstConfig.CONSUME)); packDict.Add(ConstConfig.STUFF, new Pack(username, roleindex, ConstConfig.STUFF)); packDict.Add(ConstConfig.PRINT, new Pack(username, roleindex, ConstConfig.PRINT)); } // end MainCharacterPack