} // end DisplayRole public DisplayRole(string roleType, IWearInfo wearInfo) { this.roleType = roleType; Init(roleType); Freshen(wearInfo); InitAvatar(roleType); } // end DisplayRole
} // end Rotate private void Freshen(IWearInfo wearInfo) { if (null == wearInfo) { return; } // end if ReloadWing(wearInfo.GetEquipInfo(ConstConfig.WING)); ReloadArmor(wearInfo.GetEquipInfo(ConstConfig.ARMOR)); ReloadWeapon(wearInfo.GetEquipInfo(ConstConfig.WEAPON)); } // end ReloadEquip
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