public override void Deserialize(BetterReader reader, string name) { base.Deserialize(reader, name); UseableXSize = reader.ReadInt32(); UseableYSize = reader.ReadInt32(); NWCellXCoordinate = reader.ReadInt16(); NWCellYCoordinate = reader.ReadInt16(); SECellXCoordinate = reader.ReadInt16(); SECellYCoordinate = reader.ReadInt16(); }
public override void Deserialize(BetterReader reader, string name) { base.Deserialize(reader, name); Flags = reader.ReadUInt32(); Fatigue = reader.ReadUInt16(); BarterGold = reader.ReadUInt16(); LevelOrLevelMult = reader.ReadInt16(); CalcMin = reader.ReadUInt16(); CalcMax = reader.ReadUInt16(); SpeedMult = reader.ReadUInt16(); KarmaAlignment = reader.ReadSingle(); DispositionBase = reader.ReadInt16(); TemplateFlags = (ACBSTemplateFlags)reader.ReadUInt16(); }
public override void Deserialize(BetterReader reader, string name) { base.Deserialize(reader, name); Texture = reader.ReadUInt32(); Quadrant = (ATXTorBTXTQuadrants)reader.ReadByte(); Unused = reader.ReadByte(); Layer = reader.ReadInt16(); }
protected override void ExtractSubRecords(BetterReader reader, GameID gameId, uint size) { var endRead = reader.Position + size; var name = string.Empty; while (reader.Position < endRead) { name = reader.ReadString(4); switch (name) { case "HEDR": Header = new HEDRSubRecord(); Header.Deserialize(reader, name); break; case "OFST": Offset = new BytesSubRecord(); Offset.Deserialize(reader, name); break; case "DELE": DELE = new BytesSubRecord(); DELE.Deserialize(reader, name); break; case "CNAM": Author = new STRSubRecord(); Author.Deserialize(reader, name); break; case "SNAM": Description = new STRSubRecord(); Description.Deserialize(reader, name); break; case "MAST": Master = new STRSubRecord(); Master.Deserialize(reader, name); break; case "DATA": FileSize = new UInt64SubRecord(); FileSize.Deserialize(reader, name); break; default: var dSize = reader.ReadInt16(); reader.ReadBytes(dSize); break; } } }
public override void Deserialize(BetterReader reader, string name) { base.Deserialize(reader, name); X1 = reader.ReadInt16(); Y1 = reader.ReadInt16(); Z1 = reader.ReadInt16(); X2 = reader.ReadInt16(); Y2 = reader.ReadInt16(); Z2 = reader.ReadInt16(); }