コード例 #1
0
ファイル: DisplayRole.cs プロジェクト: HelloWindows/Solider
                } // end DisplayRole

                public DisplayRole(string roleType, IWearInfo wearInfo)
                {
                    this.roleType = roleType;
                    Init(roleType);
                    Freshen(wearInfo);
                    InitAvatar(roleType);
                } // end DisplayRole
コード例 #2
0
ファイル: DisplayRole.cs プロジェクト: HelloWindows/Solider
                } // 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
コード例 #3
0
 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