예제 #1
0
        public SpaceStation(int radius) : base()
        {
            InitializeMap(radius);



            Thread stationThread = new Thread(BuildStation);

            stationThread.Start();
            stationThread.Join();


            position = new Vector2(0, 0);

            nodeMesh = new World.NodeMesh();
            InitializeCellSpacePartition();
            InitializeILocalCellPartition();
        }
예제 #2
0
        public SpaceStation(int radius, string name)
        {
            InitializeMap(radius);
            entityName = name;

            GameData <Room> roomData = new GameData <Room>();

            roomData.folderPath = @"Saves\Rooms\";

            Room tempRoom = roomData.LoadObjectData("Room1");

            rooms.Add(tempRoom);
            BuildRoomsOnRing(radius / 4, MathHelper.ToRadians(20));
            BuildRoomsOnRing(radius / 2, MathHelper.ToRadians(10));

            position = new Vector2();
            nodeMesh = new World.NodeMesh();
            InitializeCellSpacePartition();
            InitializeILocalCellPartition();
        }