예제 #1
0
    public TrackJunction ToTrackJunction()
    {
        TrackJunction junction = new TrackJunction(Position.ToWorldPosition(), Rotation.ToWorldRotation(), SectionIndices);

        junction.index = Index;
        junction.PreviousSectionIndex = PrevIndex;
        return(junction);
    }
    public TrackSection ToTrackSection()
    {
        TrackSection track = new TrackSection(Position.ToWorldPosition(), Rotation.ToWorldRotation(), Length, Curved, Angle);

        track.index                = Index;
        track.NextSectionIndex     = NextIndex;
        track.PreviousSectionIndex = PrevIndex;
        return(track);
    }