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; }
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; }
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; }
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)); }
public bool CanBeEquippedBy(CharClassType cct) { return(ForClasses.Contains(cct)); }
public CharClassInfo(string name, CharClassType type) { this.name = name; this.type = type; }