AbstractedSheep.ShuttleTrackerWorld.World.GenerateWorld C# (CSharp) Метод

GenerateWorld() публичный статический Метод

Create a world object from a Netlink object.
public static GenerateWorld ( Netlink n ) : World
n Netlink The Netlink class that represents the Netlink JSON.
Результат World
        public static World GenerateWorld(Netlink n)
        {
            World w = new World();

            foreach (RouteJson r in n.routes)
            {
                w.AddRoute(r);
            }

            foreach (StopJson s in n.stops)
            {
                w.AddStop(s);
            }

            return w;
        }