Пример #1
0
 public CharClassInfo(string name, afh.Text.CLangCType type)
 {
     this.name     = name;
     this.type     = CharClassType.CLanguageCType;
     this.node_pos = new CLangCTypeNode(name, type, true);
     this.node_neg = new CLangCTypeNode(name, type, false);
     this.value    = (byte)type;
 }
Пример #2
0
 public CharClassInfo(string name, afh.Text.UnicodeBlock block)
 {
     this.name     = name;
     this.type     = CharClassType.UnicodeBlock;
     this.node_pos = new UnicodeBlockNode(name, block, true);
     this.node_neg = new UnicodeBlockNode(name, block, false);
     this.value    = (byte)block;
 }
Пример #3
0
 public CharClassInfo(string name, afh.Text.GeneralCategory cat)
 {
     this.name     = name;
     this.type     = CharClassType.UnicodeGenralCategory;
     this.node_pos = new GeneralCategoryNode(name, cat, true);
     this.node_neg = new GeneralCategoryNode(name, cat, false);
     this.value    = (byte)cat;
 }
Пример #4
0
        public IEquipment Convert(Item item)
        {
            EquipSlot     es  = LEGACY_EQUIP_TYPE[item.itemType];
            CharClassType cct = CharClassConverter.LEGACY_CLASS_TYPE[item.forClass];

            return(new Equipment(item.itemID, item.inventoryID, item.itemName, item.description, es,
                                 (byte)item.itemRarity, item.itemFind, item.preventDeathBonus, item.successChance, item.xpBonus,
                                 item.coinBonus, cct));
        }
Пример #5
0
 public bool CanBeEquippedBy(CharClassType cct)
 {
     return(ForClasses.Contains(cct));
 }
Пример #6
0
 public CharClassInfo(string name, CharClassType type)
 {
     this.name = name;
     this.type = type;
 }