/** <summary> Gets the subtype of the object. </summary> */ public static ObjectSubtypes ReadSubtype(BinaryReader reader) { AttractionHeader header = new AttractionHeader(); header.Read(reader); if (header.RideType == RideTypes.Stall) { return(ObjectSubtypes.Stall); } else if (header.RideType == RideTypes.Transport) { return(ObjectSubtypes.TransportRide); } else if (header.RideType == RideTypes.Gentle) { return(ObjectSubtypes.GentleRide); } else if (header.RideType == RideTypes.Rollercoaster) { return(ObjectSubtypes.Rollercoaster); } else if (header.RideType == RideTypes.Thrill) { return(ObjectSubtypes.ThrillRide); } else if (header.RideType == RideTypes.Water) { return(ObjectSubtypes.WaterRide); } return(ObjectSubtypes.Basic); }
//-------------------------------- #endregion //=========== READING ============ #region Reading /** <summary> Reads the object header. </summary> */ protected override void ReadHeader(BinaryReader reader) { Header.Read(reader); }