public void ParseEntry(String[] raw) { Int32 index = 0; Price = CsvParser.UInt16(raw[index++]); GraphicsId = CsvParser.Byte(raw[index++]); ColorId = CsvParser.Byte(raw[index++]); Quality = CsvParser.Byte(raw[index++]); BonusId = CsvParser.Byte(raw[index++]); AbilityIds = CsvParser.ByteArray(raw[index++]); Byte type = 0; for (Int32 i = 0; i < 8; i++) { type <<= 1; type |= CsvParser.Byte(raw[index++]); } TypeMask = (ItemType)type; Order = CsvParser.Byte(raw[index++]); UInt16 equippable = 0; for (Int32 i = 0; i < 12; i++) { equippable <<= 1; equippable |= CsvParser.Byte(raw[index++]); } CharacterMask = (ItemCharacter)equippable; }
public void ParseEntry(String[] raw) { Type = (CharacterCommandType)CsvParser.Byte(raw[0]); Ability = CsvParser.Byte(raw[1]); Abilities = CsvParser.ByteArray(raw[2]); }