protected override void WriteData(DataBuffer buf, FileFormat fmt) { buf.Write(ModelIndex); buf.Write(Handle); buf.Write(Matrix.Compress()); if ((fmt.IsPS2 && fmt.IsJapanese) || !fmt.IsPS2) { buf.Skip(4); } buf.Write(UprootLimit); buf.Write(ObjectMatrix.Compress()); if ((fmt.IsPS2 && fmt.IsJapanese) || !fmt.IsPS2) { buf.Skip(4); } buf.Write((byte)CreatedBy); buf.Write(IsPickup); buf.Write(IsPickupInShop); buf.Write(IsPickupOutOfStock); buf.Write(IsGlassCracked); buf.Write(IsGlassBroken); buf.Write(HasBeenDamaged); buf.Write(UseCarColors); buf.Write(CostValue); buf.Write(BonusValue); buf.Skip(1); buf.Write(CollisionDamageMultiplier); buf.Write(CollisionDamageEffect); buf.Write(SpecialCollisionResponseCases); buf.Write(EndOfLifeTime); SaveEntityFlags(buf, fmt); Debug.Assert(buf.Offset == SizeOfType <PhysicalObject>(fmt)); }