示例#1
0
        internal ApiObject(Track track, Sector sector, Tram tram)
        {
            TrackType    = (int)track.Type;
            TrackNumber  = track.Number;
            SectorNumber = sector.Number;
            Latitude     = sector.Latitude;
            Longitude    = sector.Longitude;

            if (tram != null)
            {
                Tram = new ApiTram(tram.Number, tram.Line);
            }
        }
示例#2
0
 public void SetTram(Tram tram)
 {
     OccupyingTram = tram;
 }