Example #1
0
        // each subnode contains units, buildings, assets, etc

        public static void GenerateSubNodes(int size)
        {
            Node.Subnodes = new Dictionary <int, Subnode>();
            for (int i = 0; i < size; i++)
            {
                int rngName = Universe.ReturnRng(8) + 1;

                string chosenName = Node.names[rngName];

                Subnode newSubNode = new Subnode();
                newSubNode.name = chosenName;
                string sectorNumberString = Universe.ReturnRng(10).ToString();

                string sectorName = "Inner " + newSubNode.name + " " + sectorNumberString;

                POI.GeneratePOI(size - 1);

                Node.Subnodes.Add(i + 1, newSubNode);
            }
        }
Example #2
0
        public static void GeneratePOI(int amount)
        {
            Dictionary <int, POI> PointsOfInterest = new Dictionary <int, POI>();

            Contents = new List <Entity>();

            for (int i = 0; i < amount; i++)
            {
                int rngName = Universe.ReturnRng(8) + 1;

                string chosenName = Node.names[rngName];

                POI newPOI = new POI();

                string sectorNumberString = Universe.ReturnRng(10).ToString();

                string sectorName = chosenName + " Inner Proxima " + sectorNumberString;
                newPOI.name = sectorName;

                GenerateContents(amount - 2);

                PointsOfInterest.Add(i + 1, newPOI);
            }
        }