public IntersectionToolbox(ArbiterRoadNetwork arn, RoadDisplay rd, Editor ed)
 {
     this.arn = arn;
     this.rd = rd;
     this.ed = ed;
     InitializeComponent();
 }
예제 #2
0
 void UnrollRequests()
 {
     if (playing == false && requestQueue.Count > 0)
     {
         NotifRequest re = requestQueue.Dequeue();
         RoadDisplay  g  = Instantiate(prefab, transform);
         g.StartThing(Finished, re.header, re.content);
         playing = true;
     }
 }
예제 #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="arn"></param>
        /// <param name="rd"></param>
        /// <param name="ed"></param>
        public ZoneTool(ArbiterRoadNetwork arn, RoadDisplay rd, Editor ed)
        {
            // set helpers we can access
            this.arn = arn;
            this.rd  = rd;
            this.ed  = ed;

            // helpers to wrap intersections for polygons
            this.WrappingHelpers = new List <Coordinates>();

            // create toolbox
            zt = new ZoneToolbox(this);
            zt.Show();
        }