public SkillBoost(BinaryFileReader r, int dataSize, GameFormat format) { if (format == GameFormat.TES3) { SkillId = (byte)r.ReadInt32(); Bonus = (sbyte)r.ReadInt32(); return; } SkillId = r.ReadByte(); Bonus = r.ReadSByte(); }
public byte StartTime; // Start time public DATAField(BinaryFileReader r, int dataSize, GameFormat format) { Volume = format == GameFormat.TES3 ? r.ReadByte() : (byte)0; MinRange = r.ReadByte(); MaxRange = r.ReadByte(); if (format == GameFormat.TES3) { return; } FrequencyAdjustment = r.ReadSByte(); r.ReadByte(); // Unused Flags = r.ReadUInt16(); r.ReadUInt16(); // Unused if (dataSize == 8) { return; } StaticAttenuation = r.ReadUInt16(); StopTime = r.ReadByte(); StartTime = r.ReadByte(); }