public AssetBUTN(Section_AHDR AHDR, Game game, Endianness endianness) : base(AHDR, game, endianness) { using (var reader = new EndianBinaryReader(AHDR.data, endianness)) { reader.BaseStream.Position = entityHeaderEndPosition; if (game != Game.Scooby) { PressedModel_AssetID = reader.ReadUInt32(); } ActMethod = (ButnActMethod)reader.ReadInt32(); InitialButtonState = reader.ReadInt32(); ResetAfterDelay = reader.ReadInt32Bool(); ResetDelay = reader.ReadSingle(); HitMask.FlagValueInt = reader.ReadUInt32(); Motion = new Motion_Mechanism(reader, game); } }