Example #1
0
 public GearTypeRunnerBase(GearType gearType, IEnumerable<string> compatibleTypes)
     : base(gearType)
 {
     this.generalTypes = new List<string>();
     this.compatibleTypes = compatibleTypes.ToList();
     this.incompatibleTypes = new List<string>();
 }
 public async Task StartAstro(Motors motors, AstroDirection direction, AstroSpeed speed, GearType gear)
 {
     await _commService
         .SendAndReceiveAsync(new MoCoBusMainCommandFrame(
             _address, 
             MoCoBusMainCommand.Start, 
             new[] { (byte)motors, (byte)direction, (byte)speed, (byte)gear }))
         .ConfigureAwait(false);
 }
Example #3
0
File: Gear.cs Project: DuCNiKo/SWUM
 public Gear(GearType gearType, JobType job, GearState state, GearElementary elementary, TierType tier, LevelType level)
     : base (ItemType.Gear, tier, level)
 {
     if (gearType == GearType.Undefined) throw new ArgumentException("The gear type is undefined.", nameof(gearType));
     if (job == JobType.Undefined) throw new ArgumentException("The job is undefined.", nameof(job));
     if (state == GearState.Undefined) throw new ArgumentException("The gear state is undefined.", nameof(state));
     Elementary = elementary;
     State = state;
     GearType = gearType;
     Job = job;
 }
Example #4
0
 public Gear(int id, string name, GearType type, bool ishealth)
 {
     ID = id;
          Name = name;
          Type = type;
          Ammo = WeaponType.amNothing;
          X = 0;
          Y = 0;
          Health = 0;
          IsHealthCrate = ishealth;
 }
Example #5
0
 public GearItem(string name, string description, Rarity rarity, GearType type, int health, int speed, int attack)
     : base(name, description, rarity)
 {
     if (type < 0 || type >= GearType.OneAboveMax)
     {
         throw new ArgumentOutOfRangeException();
     }
     this.type = type;
     this.health = health;
     this.speed = speed;
     this.attack = attack;
 }
Example #6
0
    public void UpgradeGear( GearType gear, int UpgradeIndex, int GoldCost)
    {
        switch(gear.Gear)
            {
            case GearType.Type.Sword:
                if( Gold >= GoldCost)
                {
                    equipList.UpgradeSword(UpgradeIndex);
                    Gold -= GoldCost;
                }
                else
                    NotEnoughGold();

                break;

            case GearType.Type.Shield:
                if( Gold >= GoldCost)
                {
                    equipList.UpgradeShield(UpgradeIndex);
                    Gold -= GoldCost;
                }
                else
                    NotEnoughGold();
                break;
            case GearType.Type.Quiver:
                if( Gold >= GoldCost)
                {
                    equipList.UpgradeQuiver(UpgradeIndex);
                    Gold -= GoldCost;
                }
                else
                    NotEnoughGold();
                break;
            case GearType.Type.Bow:
                if( Gold >= GoldCost)
                {
                    equipList.UpgradeBow(UpgradeIndex);
                    Gold -= GoldCost;
                }
                else
                    NotEnoughGold();
                break;

            }
    }
Example #7
0
 public static bool IsWeapon(GearType type)
 {
     return(IsLeftWeapon(type) ||
            IsDoubleHandWeapon(type));
 }
        public void ReturnNoCarsMessage_WhenThereAreNoCarsInThatRange()
        {
            // Arrange
            var sessionMock = new Mock <IUserSession>();

            var user = new User()
            {
                UserType = UserType.Admin
            };

            sessionMock.Setup(s => s.CurrentUser).Returns(user);

            var carServiceMock = new Mock <ICarService>();

            var sut = new FilterByPriceCommand(sessionMock.Object, carServiceMock.Object);

            var brand = new Brand()
            {
                Name = "brand"
            };
            var bodyType = new BodyType()
            {
                Name = "bodyType"
            };
            var colorType = new ColorType()
            {
                Name = "colorType"
            };
            var color = new Color()
            {
                Name = "color", ColorType = colorType
            };
            var fuel = new FuelType()
            {
                Name = "fuel"
            };
            var gearType = new GearType()
            {
                Name = "gearType"
            };
            var gearbox = new Gearbox()
            {
                GearType = gearType
            };

            var car = new Car()
            {
                Brand    = brand,
                BodyType = bodyType,
                Color    = color,
                FuelType = fuel,
                GearBox  = gearbox,
                Price    = 3000
            };
            var cars = new List <Car>()
            {
                car
            };

            carServiceMock.Setup(c => c.GetCars(It.IsAny <string>())).Returns(cars);
            var parameters = new string[2] {
                "1000", "2000"
            };

            // Act
            var result = sut.Execute(parameters);

            // Assert
            StringAssert.Contains(result, "no cars");
        }
        /// <summary>
        /// 获取gearType所对应的字符串。
        /// </summary>
        /// <param Name="Type">表示装备类型GearType。</param>
        /// <returns></returns>
        public static string GetGearTypeString(GearType type)
        {
            switch (type)
            {
            case GearType.body: return("纸娃娃(身体)");

            case GearType.head: return("纸娃娃(头部)");

            case GearType.face:
            case GearType.face2: return("纸娃娃(脸型)");

            case GearType.hair:
            case GearType.hair2:
            case GearType.hair3: return("纸娃娃(发型)");

            case GearType.faceAccessory: return("脸饰");

            case GearType.eyeAccessory: return("眼饰");

            case GearType.earrings: return("耳环");

            case GearType.pendant: return("坠子");

            case GearType.belt: return("腰带");

            case GearType.medal: return("勋章");

            case GearType.shoulderPad: return("肩饰");

            case GearType.cap: return("帽子");

            case GearType.cape: return("披风");

            case GearType.coat: return("上衣");

            case GearType.dragonMask: return("龙神帽子");

            case GearType.dragonPendant: return("龙神吊坠");

            case GearType.dragonWings: return("龙神翅膀");

            case GearType.dragonTail: return("龙神尾巴");

            case GearType.glove: return("手套");

            case GearType.longcoat: return("套服");

            case GearType.machineEngine: return("机甲引擎");

            case GearType.machineArms: return("机甲机械臂");

            case GearType.machineLegs: return("机甲机械腿");

            case GearType.machineBody: return("机甲机身材质");

            case GearType.machineTransistors: return("机甲晶体管");

            case GearType.pants: return("裤/裙");

            case GearType.ring: return("戒指");

            case GearType.shield: return("盾牌");

            case GearType.shoes: return("鞋子");

            case GearType.shiningRod: return("双头杖");

            case GearType.soulShooter: return("灵魂手铳");

            case GearType.ohSword: return("单手剑");

            case GearType.ohAxe: return("单手斧");

            case GearType.ohBlunt: return("单手钝器");

            case GearType.dagger: return("短刀");

            case GearType.katara: return("刀");

            case GearType.magicArrow: return("魔法箭矢");

            case GearType.card: return("卡片");

            case GearType.box: return("宝盒");

            case GearType.orb: return("宝珠");

            case GearType.novaMarrow: return("龙之精髓");

            case GearType.soulBangle: return("灵魂手镯");

            case GearType.mailin: return("麦林");

            case GearType.cane: return("手杖");

            case GearType.wand: return("短杖");

            case GearType.staff: return("长杖");

            case GearType.thSword: return("双手剑");

            case GearType.thAxe: return("双手斧");

            case GearType.thBlunt: return("双手钝器");

            case GearType.spear: return("枪");

            case GearType.polearm: return("矛");

            case GearType.bow: return("弓");

            case GearType.crossbow: return("弩");

            case GearType.throwingGlove: return("拳套");

            case GearType.knuckle: return("指节");

            case GearType.gun: return("短枪");

            case GearType.android: return("智能机器人");

            case GearType.machineHeart: return("机械心脏");

            case GearType.pickaxe: return("采矿工具");

            case GearType.shovel: return("采药工具");

            case GearType.pocket: return("口袋物品");

            case GearType.dualBow: return("双弩枪");

            case GearType.handCannon: return("手持火炮");

            case GearType.badge: return("徽章");

            case GearType.emblem: return("纹章");

            case GearType.soulShield: return("灵魂盾");

            case GearType.demonShield: return("精气盾");

            case GearType.totem: return("图腾");

            case GearType.petEquip: return("宠物装备");

            case GearType.taming:
            case GearType.taming2:
            case GearType.taming3:
            case GearType.tamingChair: return("骑兽");

            case GearType.saddle: return("鞍子");

            case GearType.katana: return("武士刀");

            case GearType.fan: return("折扇");

            case GearType.swordZB: return("大剑");

            case GearType.swordZL: return("太刀");

            case GearType.weapon: return("武器");

            case GearType.subWeapon: return("辅助武器");

            case GearType.heroMedal: return("吊坠");

            case GearType.rosario: return("念珠");

            case GearType.chain: return("铁链");

            case GearType.book1:
            case GearType.book2:
            case GearType.book3: return("魔导书");

            case GearType.bowMasterFeather: return("箭羽");

            case GearType.crossBowThimble: return("扳指");

            case GearType.shadowerSheath: return("短剑剑鞘");

            case GearType.nightLordPoutch: return("护身符");

            case GearType.viperWristband: return("手腕护带");

            case GearType.captainSight: return("瞄准器");

            case GearType.connonGunPowder:
            case GearType.connonGunPowder2: return("火药桶");

            case GearType.aranPendulum: return("砝码");

            case GearType.evanPaper: return("文件");

            case GearType.battlemageBall: return("魔法球");

            case GearType.wildHunterArrowHead: return("箭轴");

            case GearType.cygnusGem: return("宝石");

            case GearType.controller: return("控制器");

            case GearType.foxPearl: return("狐狸珠");

            case GearType.chess: return("棋子");

            case GearType.powerSource: return("能源");

            case GearType.energySword: return("能量剑");

            case GearType.desperado: return("亡命剑");

            case GearType.magicStick: return("驯兽魔法棒");

            case GearType.whistle: return("哨子");

            case GearType.boxingClaw: return("拳爪");

            case GearType.katana2: return("小太刀");

            case GearType.espLimiter: return("ESP限制器");

            case GearType.GauntletBuster: return("机甲手枪");

            case GearType.ExplosivePill: return("装弹");

            case GearType.chain2: return("锁链");

            case GearType.magicGauntlet: return("魔力手套");

            case GearType.transmitter: return("武器传送装置");

            case GearType.magicWing: return("魔法之翼");

            case GearType.pathOfAbyss: return("深渊精气珠");

            case GearType.relic: return("遗物");

            case GearType.ancientBow: return("远古弓");

            case GearType.handFan: return("扇子");

            case GearType.fanTassel: return("扇坠");

            case GearType.tuner: return("调谐器");

            case GearType.bracelet: return("手链");

            default: return(null);
            }
        }
Example #10
0
 void RpcUpgraded(GearType gearType)
 {
     EventManager.TriggerEvent(Constants.EVENT_UPGRADED_GEAR, new { gearType = gearType, ownNetId = _race.netId.Value });
 }
Example #11
0
 void RpcRefreshSyncAvaibleGearsByType(GearType gearType)
 {
     EventManager.TriggerEvent(Constants.EVENT_REFRESH_SYNC_AVAILABLE_GEARS_BY_TYPE, new { gearType = gearType, ownNetId = _race.netId.Value });
 }
Example #12
0
 public GearTypeFilter(GearType gearType, string keyword)
 {
     this.gearType = gearType;
     this.Keyword = keyword;
 }
Example #13
0
 public Trainee(string iD, string last_name, string first_name, string email, Gender gender, string phone_number, Address address, DateTime date_of_birth, CarType car_type, GearType gear_type, string school, string teacher, int lessons, Grade?status = null)
 {
     ID            = iD;
     Last_name     = string.Copy(last_name);
     First_name    = string.Copy(first_name);
     Email         = string.Copy(email);
     Gender        = gender;
     Phone_number  = string.Copy(phone_number);
     Address       = address.Clone() as Address;
     Date_of_birth = date_of_birth;
     Car_type      = car_type;
     Gear_type     = gear_type;
     School        = string.Copy(school);
     Teacher       = string.Copy(teacher);
     Lessons       = lessons;
     Status        = status;
 }
Example #14
0
    public void LootGear(GearController gearToLoot, GearType gearType)
    {
        if (gearToLoot.gearType == GearType.Consumable)
        {
            Consumable consumableToLoot = gearToLoot as Consumable;
            foreach (Slot s in slots)
            {
                if (s.gear != null && s.gear.gearType == GearType.Consumable && s.gear.name == consumableToLoot.name)
                {
                    Consumable updatedConsumable = s.gear as Consumable;
                    updatedConsumable.consumablesRemaining += consumableToLoot.consumablesRemaining;
                    consumableToLoot.SelfDestroyC();
                    if (s == activeSlot)
                    {
                        gameManager.ActivateHudGear(activeSlot.gear);
                    }

                    return;
                }
            }
        }
        Slot lootingSlot = null;

        if (activeSlot.slotEmpty)
        {
            lootingSlot = activeSlot;
        }

        foreach (Slot s in slots)
        {
            if (lootingSlot != null || !s.slotEmpty)
            {
                continue;
            }
            lootingSlot = s;
        }
        if (lootingSlot == null && !activeSlot.slotEmpty)
        {
            Debug.Log("Droping " + activeSlot.gear.name);
            DropWeapon();
            lootingSlot = activeSlot;
        }


        gearToLoot.transform.parent         = lootingSlot.slot.transform;
        lootingSlot.gear                    = gearToLoot;
        lootingSlot.gear.transform.position = lootingSlot.slot.transform.position;
        if (gearToLoot.name == "HealingPotion")
        {
            lootingSlot.gear.transform.rotation = Quaternion.Euler(Vector3.zero);
        }
        else
        {
            lootingSlot.gear.transform.rotation = lootingSlot.slot.transform.rotation;
        }
        lootingSlot.SetName(gearToLoot.name);
        lootingSlot.slotEmpty = false;
        if (lootingSlot == activeSlot)
        {
            lootingSlot.gear.gameObject.SetActive(true);
            lootingSlot.gear.gameObject.GetComponent <GearController>().enabled = true;

            if (gearToLoot.gearType == GearType.Weapon)
            {
                activeWeapon     = gearToLoot as Weapon;
                activeConsumable = null;
                ApplyArsenalToGear();
            }
            else if (gearToLoot.gearType == GearType.Consumable)
            {
                activeConsumable = gearToLoot as Consumable;
                activeWeapon     = null;
            }
            gameManager.ActivateHudGear(lootingSlot.gear);
        }
        else
        {
            lootingSlot.gear.gameObject.SetActive(false);
        }
    }
Example #15
0
 public IEnumerable <Tester> Available_testers_by_day_nearby(DateTime d, Address A, CarType Car_type, GearType Gear_type)
 {
     return(myDAL.Get_all_testers(t => t.Car_type == Car_type && t.Gear_type == Gear_type &&
                                  A.Distance(t.Address) <= t.Max_distance && Available_at_day(t, d)));
 }
Example #16
0
 public static bool IsMechanicGear(GearType type)
 {
     return((int)type >= 161 && (int)type <= 165);
 }
Example #17
0
        /// <summary>
        /// 获取gearType所对应的字符串。
        /// </summary>
        /// <param Name="Type">表示装备类型GearType。</param>
        /// <returns></returns>
        public static string GetGearTypeString(GearType type)
        {
            switch (type)
            {
            case GearType.body: return("纸娃娃(身体)");

            case GearType.head: return("피부");

            case GearType.face:
            case GearType.face2: return("Face");

            case GearType.hair:
            case GearType.hair2:
            case GearType.hair3: return("Hair");

            case GearType.faceAccessory: return("Face");

            case GearType.eyeAccessory: return("Eye");

            case GearType.earrings: return("Earring");

            case GearType.pendant: return("Pendant");

            case GearType.belt: return("Belt");

            case GearType.medal: return("Medal");

            case GearType.shoulderPad: return("Shoulder");

            case GearType.cap: return("Hat");

            case GearType.cape: return("Cape");

            case GearType.coat: return("Shirt");

            case GearType.dragonMask: return("Dragon Mask");

            case GearType.dragonPendant: return("드래곤 펜던트");

            case GearType.dragonWings: return("드래곤 날개장식");

            case GearType.dragonTail: return("드래곤 꼬리장식");

            case GearType.glove: return("Glove");

            case GearType.longcoat: return("Overall");

            case GearType.machineEngine: return("메카닉 엔진");

            case GearType.machineArms: return("메카닉 암");

            case GearType.machineLegs: return("메카닉 레그");

            case GearType.machineBody: return("메카닉 프레임");

            case GearType.machineTransistors: return("메카닉 트랜지스터");

            case GearType.pants: return("Pant");

            case GearType.ring: return("Ring");

            case GearType.shield: return("Shield");

            case GearType.shoes: return("Shoe");

            case GearType.shiningRod: return("Shining Rod");

            case GearType.soulShooter: return("Soul Shooter");

            case GearType.ohSword: return("1H Sword");

            case GearType.ohAxe: return("1H Axe");

            case GearType.ohBlunt: return("1H Hammer");

            case GearType.dagger: return("Dagger");

            case GearType.katara: return("Katara");

            case GearType.magicArrow: return("Magic Arrow");

            case GearType.card: return("카드");

            case GearType.box: return("宝盒");

            case GearType.orb: return("오브");

            case GearType.novaMarrow: return("용의 정수");

            case GearType.soulBangle: return("소울링");

            case GearType.mailin: return("매그넘");

            case GearType.cane: return("케인");

            case GearType.wand: return("완드");

            case GearType.staff: return("스태프");

            case GearType.thSword: return("두손검");

            case GearType.thAxe: return("두손도끼");

            case GearType.thBlunt: return("두손둔기");

            case GearType.spear: return("창");

            case GearType.polearm: return("폴암");

            case GearType.bow: return("활");

            case GearType.crossbow: return("석궁");

            case GearType.throwingGlove: return("아대");

            case GearType.knuckle: return("너클");

            case GearType.gun: return("건");

            case GearType.android: return("안드로이드");

            case GearType.machineHeart: return("기계 심장");

            case GearType.pickaxe: return("채광 도구");

            case GearType.shovel: return("약초채집 도구");

            case GearType.pocket: return("포켓 아이템");

            case GearType.dualBow: return("듀얼 보우건");

            case GearType.handCannon: return("핸드캐논");

            case GearType.badge: return("뱃지");

            case GearType.emblem: return("엠블렘");

            case GearType.soulShield: return("소울실드");

            case GearType.demonShield: return("포스실드");

            case GearType.totem: return("Totem");

            case GearType.petEquip: return("펫장비");

            case GearType.taming:
            case GearType.taming2:
            case GearType.taming3:
            case GearType.tamingChair: return("라이딩");

            case GearType.saddle: return("안장");

            case GearType.katana: return("Katana");

            case GearType.fan: return("Fan");

            case GearType.swordZB: return("대검");

            case GearType.swordZL: return("태도");

            case GearType.weapon: return("Weapon");

            case GearType.subWeapon: return("Secondary");

            case GearType.heroMedal: return("메달");

            case GearType.rosario: return("로자리오");

            case GearType.chain: return("쇠사슬");

            case GearType.book1:
            case GearType.book2:
            case GearType.book3: return("마도서");

            case GearType.bowMasterFeather: return("화살깃");

            case GearType.crossBowThimble: return("활골무");

            case GearType.shadowerSheath: return("단검용 검집");

            case GearType.nightLordPoutch: return("부적");

            case GearType.viperWristband: return("리스트밴드");

            case GearType.captainSight: return("조준기");

            case GearType.connonGunPowder:
            case GearType.connonGunPowder2: return("화약통");

            case GearType.aranPendulum: return("무게추");

            case GearType.evanPaper: return("문서");

            case GearType.battlemageBall: return("마법구슬");

            case GearType.wildHunterArrowHead: return("화살촉");

            case GearType.cygnusGem: return("보석");

            case GearType.controller: return("컨트롤러");

            case GearType.foxPearl: return("여우 구슬");

            case GearType.chess: return("Chess Piece");

            case GearType.powerSource: return("Power Source");

            case GearType.energySword: return("Energy Sword");

            case GearType.desperado: return("Desperado");

            case GearType.magicStick: return("Magic Stick");

            case GearType.whistle: return("Whistle");

            case GearType.boxingClaw: return("拳爪");

            case GearType.katana2: return("小太刀");

            case GearType.espLimiter: return("ESP Limiter");

            case GearType.GauntletBuster: return("건틀렛 리볼버");

            case GearType.ExplosivePill: return("장약");

            case GearType.chain2: return("Chain");

            case GearType.magicGauntlet: return("매직 건틀렛");

            case GearType.transmitter: return("무기 전송장치");

            case GearType.magicWing: return("매직윙");

            case GearType.pathOfAbyss: return("패스 오브 어비스");

            case GearType.relic: return("Relic");

            case GearType.ancientBow: return("Ancient Bow");

            case GearType.handFan: return("부채");

            case GearType.fanTassel: return("선추");


            case GearType.tuner: return("Tuner");

            case GearType.bracelet: return("Bracelet");

            case GearType.breathShooter: return("BreathShooter");

            case GearType.weaponBelt: return("Weapon Belt");

            case GearType.norigae: return("Norigae");

            //case GearType.breathShooter: return "龙息臂箭";
            //case GearType.weaponBelt: return "武器腰带";
            default: return(null);
            }
        }
Example #18
0
    public void CarouselItemEnter(int id)
    {
        GearType type = StoreController.singleton.gearDb.GetGearTypeById(id);

        InfoPanelController.singleton.ShowPanel(type.gearName, type.price.ToString(), type.description);
    }
Example #19
0
 public GearTypeRunner(GearType gearType)
 {
     this.Type = gearType;
 }
Example #20
0
        /// <summary>
        /// 获取装备额外职业要求说明的字符串。
        /// </summary>
        /// <param Name="Type">表示装备类型的GearType。</param>
        /// <returns></returns>
        public static string GetExtraJobReqString(GearType type)
        {
            switch (type)
            {
            case GearType.katara: return("暗影双刀职业群可以装备");

            case GearType.demonShield: return("恶魔猎手可以装备");

            case GearType.magicArrow: return("双弩精灵可以装备");

            case GearType.card: return("幻影可以装备");

            case GearType.box: return("龙的传人可以装备");

            case GearType.orb:
            case GearType.shiningRod: return("夜光法师可以装备");

            case GearType.novaMarrow: return("狂龙战士可以装备");

            case GearType.soulBangle:
            case GearType.soulShooter: return("爆莉萌天使可以装备");

            case GearType.soulShield: return("米哈尔可以装备");

            case GearType.mailin: return("机械师可以装备");

            case GearType.heroMedal: return("英雄职业群可以装备");

            case GearType.rosario: return("圣骑士职业群可以装备");

            case GearType.chain: return("黑骑士职业群可以装备");

            case GearType.book1: return("火毒系列魔法师可以装备");

            case GearType.book2: return("冰雷系列魔法师可以装备");

            case GearType.book3: return("主教系列魔法师可以装备");

            case GearType.bowMasterFeather: return("神射手职业群可以装备");

            case GearType.crossBowThimble: return("箭神职业群可以装备");

            case GearType.shadowerSheath: return("侠盗职业群可以装备");

            case GearType.nightLordPoutch: return("隐士职业群可以装备");

            case GearType.viperWristband: return("冲锋队长职业群可以装备");

            case GearType.captainSight: return("船长职业群可以装备");

            case GearType.connonGunPowder:
            case GearType.connonGunPowder2: return("火炮手职业群可以装备");

            case GearType.aranPendulum: return("战神职业群可以装备");

            case GearType.evanPaper: return("龙神职业群可以装备");

            case GearType.battlemageBall: return("唤灵斗师职业群可以装备");

            case GearType.wildHunterArrowHead: return("豹弩游侠职业群可以装备");

            case GearType.cygnusGem: return("冒险骑士团可以装备");

            case GearType.controller:
            case GearType.energySword: return("尖兵可以装备");

            case GearType.desperado: return("恶魔复仇者可以装备");

            case GearType.swordZB:
            case GearType.swordZL: return("神之子可以装备");

            case GearType.whistle:
            case GearType.magicStick: return("林之灵可以装备");

            case GearType.foxPearl: return("隐月可以装备");

            case GearType.boxingClaw: return("龙的传人可以装备");

            case GearType.katana:
            case GearType.katana2: return("剑豪可以装备");

            case GearType.fan: return("阴阳师可以装备");

            case GearType.espLimiter:
            case GearType.chess: return("超能力者可以装备");

            case GearType.GauntletBuster:
            case GearType.ExplosivePill: return("爆破手可使用");

            default: return(null);
            }
        }
Example #21
0
        public ClothingItem(DB db, long id, long key)
        {
            this.key = key;
            this.id  = id;
            try
            {
                CObject gearDef = db.toObj(id, key);
                if (id == 7629)
                {
                    this.name = gearDef.getMember(0).convert() + "";
                    if (gearDef.hasMember(1))
                    {
                        this.langKey = gearDef.getMember(1).getIntMember(0);
                    }
                    if (gearDef.hasMember(4))
                    {
                        icon = db.toObj(6009, gearDef.getIntMember(4)).getStringMember(1);
                    }
                    if (gearDef.hasMember(5))
                    {
                        CObject allowedSlotsArray = gearDef.getMember(5);
                        foreach (CObject o in allowedSlotsArray.members)
                        {
                            int slot = int.Parse(o.convert() + "");
                            allowedSlots.Add(WardrobeStuff.getSlot(slot));
                        }
                    }


                    if (gearDef.hasMember(6))
                    {
                        type = WardrobeStuff.getGearType(gearDef.getIntMember(6));
                    }
                    if (gearDef.hasMember(7))
                    {
                        hidden = gearDef.getBoolMember(7, false);
                    }
                    nifKey = gearDef.getIntMember(2);
                    nifRef = new NIFReference(db, nifKey);
                }
                else if (id == 7305)
                {
                    nifRef = new NIFReference(db, key);
                    nifKey = key;


                    if (gearDef.hasMember(2))
                    {
                        string nifPath = gearDef.getMember(2).convert() + "";
                        this.name = System.IO.Path.GetFileName(nifPath);
                        if (nifPath.Contains(@"\player\") && nifPath.Contains(@"\wings\"))
                        {
                            allowedSlots.Add(GearSlot.CAPE);
                        }
                    }

                    if (gearDef.hasMember(15))
                    {
                        CObject allowedSlotsArray = gearDef.getMember(15);
                        foreach (CObject o in allowedSlotsArray.members)
                        {
                            int slot = int.Parse(o.convert() + "");
                            allowedSlots.Add(WardrobeStuff.getSlot(slot));
                        }
                    }
                    else
                    {
                    }
                }
                else
                {
                    throw new Exception("Bad id:" + id);
                }
            }
            catch (Exception ex)
            {
                Debug.Log("Unable to process [" + this + "] nif reference:" + ex);
            }
        }
Example #22
0
 public IResult Add(GearType gearType)
 {
     _gearTypeDal.Add(gearType);
     return(new SuccessResult(Messages.GearTypeAdded));
 }
Example #23
0
 void RpcBought(GearType gearType)
 {
     EventManager.TriggerEvent(Constants.EVENT_BOUGHT_GEAR, new { gearType = gearType, ownNetId = _race.netId.Value });
 }
Example #24
0
 public IResult Delete(GearType gearType)
 {
     _gearTypeDal.Delete(gearType);
     return(new SuccessResult(Messages.GearTypeDeleted));
 }
Example #25
0
 public SyncGearBoughtItem[] GetSyncAvailableGearsByType(GearType gearType)
 {
     return(syncAvailableGears
            .Where(x => x.gearType == gearType && x.inStoreState == InStoreState.Available)
            .ToArray());
 }
Example #26
0
 public IResult Update(GearType gearType)
 {
     _gearTypeDal.Update(gearType);
     return(new SuccessResult(Messages.GearTypeUpdated));
 }
Example #27
0
        /// <summary>
        /// 获取装备额外职业要求说明的字符串。
        /// </summary>
        /// <param Name="Type">表示装备类型的GearType。</param>
        /// <returns></returns>
        public static string GetExtraJobReqString(GearType type)
        {
            switch (type)
            {
            //0xxx
            case GearType.heroMedal: return("英雄职业群可穿戴装备");

            case GearType.rosario: return("圣骑士职业群可穿戴装备");

            case GearType.chain: return("黑骑士职业群可穿戴装备");

            case GearType.book1: return("火毒系列魔法师可穿戴装备");

            case GearType.book2: return("冰雷系列魔法师可穿戴装备");

            case GearType.book3: return("主教系列魔法师可穿戴装备");

            case GearType.bowMasterFeather: return("神射手职业群可穿戴装备");

            case GearType.crossBowThimble: return("箭神职业群可穿戴装备");

            case GearType.shadowerSheath: return("侠盗职业群可穿戴装备");

            case GearType.nightLordPoutch: return("隐士职业群可穿戴装备");

            case GearType.katara: return("暗影双刀职业群可穿戴装备");

            case GearType.viperWristband: return("冲锋队长职业群可穿戴装备");

            case GearType.captainSight: return("船长职业群可穿戴装备");

            case GearType.connonGunPowder:
            case GearType.connonGunPowder2: return("火炮手职业群可穿戴装备");

            case GearType.box:
            case GearType.boxingClaw: return("龙的传人可穿戴装备");

            case GearType.relic: return("古迹猎人职业群可穿戴装备");

            //1xxx
            case GearType.cygnusGem: return("冒险骑士团可穿戴装备");

            //2xxx
            case GearType.aranPendulum: return(GetExtraJobReqString(21));

            case GearType.evanPaper: return(GetExtraJobReqString(22));

            case GearType.magicArrow: return(GetExtraJobReqString(23));

            case GearType.card: return(GetExtraJobReqString(24));

            case GearType.foxPearl: return(GetExtraJobReqString(25));

            case GearType.orb:
            case GearType.shiningRod: return(GetExtraJobReqString(27));

            //3xxx
            case GearType.demonShield: return(GetExtraJobReqString(31));

            case GearType.desperado: return("恶魔复仇者可穿戴装备");

            case GearType.battlemageBall: return("唤灵斗师职业群可穿戴装备");

            case GearType.wildHunterArrowHead: return("豹弩游侠职业群可穿戴装备");

            case GearType.mailin: return("机械师可穿戴装备");

            case GearType.controller:
            case GearType.energySword: return(GetExtraJobReqString(36));

            case GearType.GauntletBuster:
            case GearType.ExplosivePill: return(GetExtraJobReqString(37));

            //4xxx
            case GearType.katana:
            case GearType.katana2: return("剑豪可穿戴装备");

            case GearType.fan: return("阴阳师可穿戴装备");

            //5xxx
            case GearType.soulShield: return("米哈尔可穿戴装备");

            //6xxx
            case GearType.novaMarrow: return(GetExtraJobReqString(61));

            case GearType.chain2:
            case GearType.transmitter: return(GetExtraJobReqString(64));

            case GearType.soulBangle:
            case GearType.soulShooter: return(GetExtraJobReqString(65));

            //10xxx
            case GearType.swordZB:
            case GearType.swordZL: return(GetExtraJobReqString(101));

            case GearType.whistle:
            case GearType.magicStick: return(GetExtraJobReqString(112));

            case GearType.espLimiter:
            case GearType.chess: return(GetExtraJobReqString(142));

            case GearType.magicGauntlet:
            case GearType.magicWing: return(GetExtraJobReqString(152));

            case GearType.pathOfAbyss: return(GetExtraJobReqString(155));

            case GearType.fanTassel: return(GetExtraJobReqString(164));

            case GearType.tuner:
            case GearType.bracelet: return(GetExtraJobReqString(151));

            default: return(null);
            }
        }
        /// <summary>
        /// 获取gearType所对应的字符串。
        /// </summary>
        /// <param Name="Type">表示装备类型GearType。</param>
        /// <returns></returns>
        public static string GetGearTypeString(GearType type)
        {
            switch (type)
            {
            case GearType.body: return("Body");

            case GearType.head: return("Head");

            case GearType.face:
            case GearType.face2: return("Face");

            case GearType.hair:
            case GearType.hair2:
            case GearType.hair3: return("Hair");

            case GearType.faceAccessory: return("FACE ACCESSORY");

            case GearType.eyeAccessory: return("EYE ACCESSORY");

            case GearType.earrings: return("EARRINGS");

            case GearType.pendant: return("PENDANT");

            case GearType.belt: return("BELT");

            case GearType.medal: return("MEDAL");

            case GearType.shoulderPad: return("SHOULDER");

            case GearType.cap: return("HAT");

            case GearType.cape: return("CAPE");

            case GearType.coat: return("TOP");

            case GearType.dragonMask: return("Dragon Hat");

            case GearType.dragonPendant: return("Dragon Pendant");

            case GearType.dragonWings: return("Dragon Wing Accessory");

            case GearType.dragonTail: return("Dragon Tail Accessory");

            case GearType.glove: return("GLOVES");

            case GearType.longcoat: return("OVERALL");

            case GearType.machineEngine: return("Mechanic Engine");

            case GearType.machineArms: return("Mechanic Arm");

            case GearType.machineLegs: return("Mechanic Leg");

            case GearType.machineBody: return("Mechanic Frame");

            case GearType.machineTransistors: return("Mechanic Transistor");

            case GearType.pants: return("BOTTOM");

            case GearType.ring: return("RING");

            case GearType.shield: return("SHIELD");

            case GearType.shoes: return("SHOES");

            case GearType.shiningRod: return("Shining Rod");

            case GearType.soulShooter: return("Soul Shooter");

            case GearType.ohSword: return("ONE-HANDED SWORD");

            case GearType.ohAxe: return("ONE-HANDED AXE");

            case GearType.ohBlunt: return("ONE-HANDED MACE");

            case GearType.dagger: return("DAGGER");

            case GearType.katara: return("KATARA");

            case GearType.magicArrow: return("Magic Arrow");

            case GearType.card: return("Card");

            case GearType.box: return("Core");

            case GearType.orb: return("Orb");

            case GearType.novaMarrow: return("Dragon Essence");

            case GearType.soulBangle: return("Soul Ring");

            case GearType.mailin: return("Magnum");

            case GearType.cane: return("Cane");

            case GearType.wand: return("WAND");

            case GearType.staff: return("STAFF");

            case GearType.thSword: return("TWO-HANDED SWORD");

            case GearType.thAxe: return("TWO-HANDED AXE");

            case GearType.thBlunt: return("TWO-HANDED MACE");

            case GearType.spear: return("SPEAR");

            case GearType.polearm: return("POLE ARM");

            case GearType.bow: return("BOW");

            case GearType.crossbow: return("CROSSBOW");

            case GearType.throwingGlove: return("CLAW");

            case GearType.knuckle: return("KNUCKLE");

            case GearType.gun: return("GUN");

            case GearType.android: return("ANDROID");

            case GearType.machineHeart: return("MECHANICAL HEART");

            case GearType.pickaxe: return("Mining Tool");

            case GearType.shovel: return("Herbalism Tool");

            case GearType.pocket: return("POCKET ITEM");

            case GearType.dualBow: return("Dual Bowguns");

            case GearType.handCannon: return("Hand Cannon");

            case GearType.badge: return("BADGE");

            case GearType.emblem: return("EMBLEM");

            case GearType.soulShield: return("Soul Shield");

            case GearType.demonShield: return("Demon Aegis");

            case GearType.totem: return("Totem");

            case GearType.petEquip: return("PET EQUIPMENT");

            case GearType.taming:
            case GearType.taming2:
            case GearType.taming3:
            case GearType.tamingChair: return("TAMED MONSTER");

            case GearType.saddle: return("SADDLE");

            case GearType.katana: return("KATANA");

            case GearType.fan: return("Fan");

            case GearType.swordZB: return("Heavy Sword");

            case GearType.swordZL: return("Long Sword");

            case GearType.weapon: return("Weapon");

            case GearType.subWeapon: return("Secondary Weapon");

            case GearType.heroMedal: return("Medallions");

            case GearType.rosario: return("Rosary");

            case GearType.chain: return("Iron Chain");

            case GearType.book1:
            case GearType.book2:
            case GearType.book3: return("Magic Book");

            case GearType.bowMasterFeather: return("Arrow Fletching");

            case GearType.crossBowThimble: return("Bow Thimble");

            case GearType.shadowerSheath: return("Dagger Scabbard");

            case GearType.nightLordPoutch: return("Charm");

            case GearType.viperWristband: return("Wrist Band");

            case GearType.captainSight: return("Far Sight");

            case GearType.connonGunPowder:
            case GearType.connonGunPowder2: return("Powder Keg");

            case GearType.aranPendulum: return("Mass");

            case GearType.evanPaper: return("Document");

            case GearType.battlemageBall: return("Magic Marble");

            case GearType.wildHunterArrowHead: return("Arrowhead");

            case GearType.cygnusGem: return("Jewel");

            case GearType.controller: return("Controller");

            case GearType.foxPearl: return("Fox Marble");

            case GearType.chess: return("Chess Piece");

            case GearType.powerSource: return("Power Source");

            case GearType.energySword: return("Whip Blade");

            case GearType.desperado: return("Desperado");

            case GearType.magicStick: return("Beast Tamer Scepter");

            case GearType.whistle:
            case GearType.whistle2: return("Whistle");

            case GearType.boxingClaw: return("Fist");

            case GearType.kodachi:
            case GearType.kodachi2: return("Kodachi");

            case GearType.espLimiter: return("Psy-limiter");

            case GearType.GauntletBuster: return("Arm Cannon");

            case GearType.ExplosivePill: return("Charge");

            case GearType.chain2: return("Chain");

            case GearType.transmitter: return("Warp Forge");

            case GearType.magicGauntlet: return("Lucent Gauntlet");

            case GearType.magicWing: return("Lucent Wings");

            case GearType.pathOfAbyss: return("Abyssal Path");

            case GearType.relic: return("Relic");

            case GearType.ancientBow: return("Ancient Bow");

            case GearType.handFan: return("Ritual Fan");

            case GearType.fanTassel: return("Fan Tassel");

            case GearType.tuner: return("Bladecaster");

            case GearType.bracelet: return("Bladebinder");

            case GearType.breathShooter: return("Whispershot");

            case GearType.weaponBelt: return("Weapon Belt");

            case GearType.boxingCannon: return("拳炮");

            case GearType.boxingSky: return("拳天");

            case GearType.ornament: return("Ornament");

            default: return(null);
            }
        }
Example #29
0
 public GearTypeRunner(GearType gearType)
 {
     this.Type = gearType;
 }
        /// <summary>
        /// 获取装备额外职业要求说明的字符串。
        /// </summary>
        /// <param Name="Type">表示装备类型的GearType。</param>
        /// <returns></returns>
        public static string GetExtraJobReqString(GearType type)
        {
            switch (type)
            {
            //0xxx
            case GearType.heroMedal: return("Hero only");

            case GearType.rosario: return("Paladin only");

            case GearType.chain: return("Dark Knight only");

            case GearType.book1: return("Fire/Poison Magician branch only");

            case GearType.book2: return("Ice/Lightning Magician branch only");

            case GearType.book3: return("Bishop Magician only");

            case GearType.bowMasterFeather: return("Bow Master only");

            case GearType.crossBowThimble: return("Marksman only");

            case GearType.shadowerSheath: return("Shadower only");

            case GearType.nightLordPoutch: return("Night Lord only");

            case GearType.katara: return("Dual Blade only");

            case GearType.viperWristband: return("Buccaneer only");

            case GearType.captainSight: return("Corsair only");

            case GearType.connonGunPowder:
            case GearType.connonGunPowder2: return("Cannoneer only");

            case GearType.box:
            case GearType.boxingClaw: return("Jett Only");

            case GearType.relic: return("Pathfinder only");

            //1xxx
            case GearType.cygnusGem: return("Cygnus Knights only");

            //2xxx
            case GearType.aranPendulum: return(GetExtraJobReqString(21));

            case GearType.evanPaper: return(GetExtraJobReqString(22));

            case GearType.magicArrow: return(GetExtraJobReqString(23));

            case GearType.card: return(GetExtraJobReqString(24));

            case GearType.foxPearl: return(GetExtraJobReqString(25));

            case GearType.orb:
            case GearType.shiningRod: return(GetExtraJobReqString(27));

            //3xxx
            case GearType.demonShield: return(GetExtraJobReqString(31));

            case GearType.desperado: return("Demon Avenger only");

            case GearType.battlemageBall: return("Battle Mage only");

            case GearType.wildHunterArrowHead: return("Wild Hunter only");

            case GearType.mailin: return("Mechanic only");

            case GearType.controller:
            case GearType.energySword: return(GetExtraJobReqString(36));

            case GearType.GauntletBuster:
            case GearType.ExplosivePill: return(GetExtraJobReqString(37));

            //4xxx
            case GearType.katana:
            case GearType.kodachi:
            case GearType.kodachi2: return(GetExtraJobReqString(41));

            case GearType.fan: return(GetExtraJobReqString(42));

            //5xxx
            case GearType.soulShield: return(GetExtraJobReqString(51));

            //6xxx
            case GearType.novaMarrow: return(GetExtraJobReqString(61));

            case GearType.breathShooter:
            case GearType.weaponBelt: return(GetExtraJobReqString(63));

            case GearType.chain2:
            case GearType.transmitter: return(GetExtraJobReqString(64));

            case GearType.soulBangle:
            case GearType.soulShooter: return(GetExtraJobReqString(65));

            //10xxx
            case GearType.swordZB:
            case GearType.swordZL: return(GetExtraJobReqString(101));

            case GearType.whistle:
            case GearType.whistle2:
            case GearType.magicStick: return(GetExtraJobReqString(112));

            case GearType.espLimiter:
            case GearType.chess: return(GetExtraJobReqString(142));

            case GearType.magicGauntlet:
            case GearType.magicWing: return(GetExtraJobReqString(152));

            case GearType.pathOfAbyss: return(GetExtraJobReqString(155));

            case GearType.handFan:
            case GearType.fanTassel: return(GetExtraJobReqString(164));

            case GearType.tuner:
            case GearType.bracelet: return(GetExtraJobReqString(151));

            case GearType.boxingCannon:
            case GearType.boxingSky: return(GetExtraJobReqString(175));

            case GearType.ornament: return(GetExtraJobReqString(162));

            default: return(null);
            }
        }
Example #31
0
 /// <summary>
 /// 获取一个值,指示装备类型是否为主手武器。
 /// </summary>
 /// <param name="type">装备类型。</param>
 /// <returns></returns>
 public static bool IsLeftWeapon(GearType type)
 {
     return((int)type >= 121 && (int)type <= 139 && type != GearType.katara);
 }
        /// <summary>
        /// 获取gearType所对应的字符串。
        /// </summary>
        /// <param Name="Type">表示装备类型GearType。</param>
        /// <returns></returns>
        public static string GetGearTypeString(GearType type)
        {
            switch (type)
            {
            //case GearType.body: return "纸娃娃(身体)";
            //case GearType.head: return "纸娃娃(头部)";
            //case GearType.face: return "纸娃娃(脸型)";
            //case GearType.hair:
            //case GearType.hair2: return "纸娃娃(发型)";
            case GearType.faceAccessory: return("얼굴장식");

            case GearType.eyeAccessory: return("눈장식");

            case GearType.earrings: return("귀걸이");

            case GearType.pendant: return("펜던트");

            case GearType.belt: return("벨트");

            case GearType.medal: return("훈장");

            case GearType.shoulderPad: return("어깨장식");

            case GearType.cap: return("모자");

            case GearType.cape: return("망토");

            case GearType.coat: return("상의");

            case GearType.dragonMask: return("드래곤 모자");

            case GearType.dragonPendant: return("드래곤 펜던트");

            case GearType.dragonWings: return("드래곤 날개장식");

            case GearType.dragonTail: return("드래곤 꼬리장식");

            case GearType.glove: return("장갑");

            case GearType.longcoat: return("한벌옷");

            case GearType.machineEngine: return("메카닉 엔진");

            case GearType.machineArms: return("메카닉 암");

            case GearType.machineLegs: return("메카닉 다리");

            case GearType.machineBody: return("메카닉 프레임");

            case GearType.machineTransistors: return("메카닉 트랜지스터");

            case GearType.pants: return("하의");

            case GearType.ring: return("반지");

            case GearType.shield: return("방패");

            case GearType.shoes: return("신발");

            case GearType.shiningRod: return("샤이닝로드");

            case GearType.soulShooter: return("소울슈터");

            case GearType.ohSword: return("한손검");

            case GearType.ohAxe: return("한손도끼");

            case GearType.ohBlunt: return("한손둔기");

            case GearType.dagger: return("단검");

            case GearType.katara: return("블레이드");

            case GearType.magicArrow: return("마법화살");

            case GearType.card: return("카드");

            case GearType.box: return("宝盒");

            case GearType.orb: return("오브");

            case GearType.novaMarrow: return("용의 정수");

            case GearType.soulBangle: return("소울링");

            case GearType.mailin: return("麦林");

            case GearType.cane: return("케인");

            case GearType.wand: return("완드");

            case GearType.staff: return("스태프");

            case GearType.thSword: return("두손검");

            case GearType.thAxe: return("두손도끼");

            case GearType.thBlunt: return("두손둔기");

            case GearType.spear: return("창");

            case GearType.polearm: return("폴암");

            case GearType.bow: return("활");

            case GearType.crossbow: return("석궁");

            case GearType.throwingGlove: return("아대");

            case GearType.knuckle: return("너클");

            case GearType.gun: return("총");

            case GearType.android: return("안드로이드");

            case GearType.machineHeart: return("기계심장");

            case GearType.pickaxe: return("채광 도구");

            case GearType.shovel: return("약초채집 도구");

            case GearType.pocket: return("포켓 아이템");

            case GearType.dualBow: return("듀얼 보우건");

            case GearType.handCannon: return("핸드캐논");

            case GearType.badge: return("뱃지");

            case GearType.emblem: return("엠블렘");

            case GearType.soulShield: return("소울실드");

            case GearType.demonShield: return("포스실드");

            case GearType.totem: return("图腾");

            case GearType.petEquip: return("펫장비");

            case GearType.taming:
            case GearType.taming2:
            case GearType.taming3:
            case GearType.tamingChair: return("라이딩");

            case GearType.saddle: return("안장");

            case GearType.katana: return("武士刀");

            case GearType.fan: return("折扇");

            case GearType.swordZB: return("대검");

            case GearType.swordZL: return("태도");

            case GearType.weapon: return("무기");

            case GearType.subWeapon: return("보조무기");

            case GearType.heroMedal: return("메달");

            case GearType.rosario: return("로자리오");

            case GearType.chain: return("쇠사슬");

            case GearType.book1:
            case GearType.book2:
            case GearType.book3: return("마도서");

            case GearType.bowMasterFeather: return("화살깃");

            case GearType.crossBowThimble: return("활골무");

            case GearType.shadowerSheath: return("단검용 검집");

            case GearType.nightLordPoutch: return("부적");

            case GearType.viperWristband: return("리스트밴드");

            case GearType.captainSight: return("조준기");

            case GearType.connonGunPowder:
            case GearType.connonGunPowder2: return("화약통");

            case GearType.aranPendulum: return("무게추");

            case GearType.evanPaper: return("문서");

            case GearType.battlemageBall: return("마법구슬");

            case GearType.wildHunterArrowHead: return("화살촉");

            case GearType.cygnusGem: return("보석");

            case GearType.powerSource: return("파워소스");

            case GearType.foxPearl: return("여우 구슬");

            case GearType.chess: return("체스피스");

            case GearType.energySword: return("에너지소드");

            case GearType.desperado: return("데스페라도");

            case GearType.magicStick: return("驯兽魔法棒");

            case GearType.whistle: return("哨子");

            case GearType.boxingClaw: return("拳爪");

            case GearType.katana2: return("小太刀");

            case GearType.espLimiter: return("ESP 리미터");

            case GearType.GauntletBuster: return("건틀렛 리볼버");

            case GearType.ExplosivePill: return("장약");

            default: return(null);
            }
        }
Example #33
0
 public static bool IsDragonGear(GearType type)
 {
     return((int)type >= 194 && (int)type <= 197);
 }
        /// <summary>
        /// 获取装备额外职业要求说明的字符串。
        /// </summary>
        /// <param Name="Type">表示装备类型的GearType。</param>
        /// <returns></returns>
        public static string GetExtraJobReqString(GearType type)
        {
            switch (type)
            {
            case GearType.katara: return("듀얼블레이드 직업군 착용 가능");

            case GearType.demonShield: return("데몬 직업군 착용 가능");

            case GearType.magicArrow: return("메르세데스 착용가능");

            case GearType.card: return("팬텀 착용 가능");

            case GearType.box: return("龙的传人可以装备");

            case GearType.orb:
            case GearType.shiningRod: return("루미너스 착용 가능");

            case GearType.novaMarrow: return("카이저 착용 가능");

            case GearType.soulBangle:
            case GearType.soulShooter: return("엔젤릭 버스터 착용 가능");

            case GearType.soulShield: return("미하일 착용 가능");

            case GearType.mailin: return("机械师可以装备");

            case GearType.heroMedal: return("히어로 직업군 착용 가능");

            case GearType.rosario: return("팔라딘 직업군 착용 가능");

            case GearType.chain: return("다크나이트 직업군 착용 가능");

            case GearType.book1: return("불,독 계열 마법사 착용 가능");

            case GearType.book2: return("얼음,번개 계열 마법사 착용 가능");

            case GearType.book3: return("비숍 계열 마법사 착용 가능");

            case GearType.bowMasterFeather: return("보우마스터 직업군 착용 가능");

            case GearType.crossBowThimble: return("신궁 직업군 착용 가능");

            case GearType.shadowerSheath: return("섀도어 직업군 착용 가능");

            case GearType.nightLordPoutch: return("나이트로드 직업군 착용 가능");

            case GearType.viperWristband: return("바이퍼 직업군 착용 가능");

            case GearType.captainSight: return("캡틴 직업군 착용 가능");

            case GearType.connonGunPowder:
            case GearType.connonGunPowder2: return("캐논 슈터 직업군 착용 가능");

            case GearType.aranPendulum: return("아란 직업군 착용 가능");

            case GearType.evanPaper: return("에반 직업군 착용 가능");

            case GearType.battlemageBall: return("배틀메이지 직업군 착용 가능");

            case GearType.wildHunterArrowHead: return("와일드헌터 직업군 착용 가능");

            case GearType.cygnusGem: return("시그너스 기사단 착용 가능");

            case GearType.powerSource:
            case GearType.energySword: return("제논 착용 가능");

            case GearType.desperado: return("데몬 어벤져 착용 가능");

            case GearType.swordZB:
            case GearType.swordZL: return("제로 착용 가능");

            case GearType.whistle:
            case GearType.magicStick: return("林之灵可以装备");

            case GearType.foxPearl: return("은월 착용 가능");

            case GearType.boxingClaw: return("龙的传人可以装备");

            case GearType.katana:
            case GearType.katana2: return("剑豪可以装备");

            case GearType.fan: return("阴阳师可以装备");

            case GearType.espLimiter:
            case GearType.chess: return("키네시스 착용 가능");

            case GearType.GauntletBuster:
            case GearType.ExplosivePill: return("블래스터 착용 가능");

            default: return(null);
            }
        }
Example #35
0
 /// <summary>
 /// 获取套装装备类型的字符串。
 /// </summary>
 /// <param Name="Type">表示套装装备类型的GearType。</param>
 /// <returns></returns>
 public static string GetSetItemGearTypeString(GearType type)
 {
     return(GetGearTypeString(type));
 }
 public GearSerialized()
 {
     gearType  = GearType.Null;
     gearColor = Color.white;
 }
 public GearSerialized(Gear gear)
 {
     gearType  = gear.gearType;
     gearColor = gear.gearColor;
 }
Example #38
0
 public IEnumerable <Gear> GetByGearType(GearType type)
 {
     throw new NotImplementedException();
 }
Example #39
0
 public GearTypeRunnerBase(GearType gearType, params string[] compatibleTypes)
     : base(gearType)
 {
     this.generalTypes = new List<string>();
     this.compatibleTypes = compatibleTypes.ToList();
     this.incompatibleTypes = new List<string>();
 }
Example #40
0
 public GearTypeFilter(GearType gearType)
 {
     this.gearType = gearType;
 }