public AssetPEND(Section_AHDR AHDR, Game game, Endianness endianness) : base(AHDR, game, endianness) { using (var reader = new EndianBinaryReader(AHDR.data, endianness)) { reader.BaseStream.Position = entityHeaderEndPosition; Motion = new Motion_Pendulum(reader); reader.BaseStream.Position = 0x74 + (game == Game.BFBB ? 4 : 0); Lt = reader.ReadInt32(); Q1t = reader.ReadInt32(); Q3t = reader.ReadInt32(); } }
public AssetPEND(string assetName, Vector3 position) : base(assetName, AssetType.PEND, BaseAssetType.Pendulum, position) { Motion = new Motion_Pendulum(); }