//public int ActiveSectionArrayIndex; public TrackJunctionSerializer(TrackJunction junction) { Position = new WorldPositionSerializer(junction.position); Rotation = new WorldRotationSerializer(junction.rotation); Index = junction.index; PrevIndex = junction.PreviousSectionIndex; SectionIndices = junction.Sections.ToArray(); }
public TrackSectionSerializer(TrackSection track) { Position = new WorldPositionSerializer(track.position); Rotation = new WorldRotationSerializer(track.rotation); Index = track.index; PrevIndex = track.PreviousSectionIndex; NextIndex = track.NextSectionIndex; Length = track.length; Curved = track.curved; Angle = track.angle; }