Esempio n. 1
0
        public void generateIsland()
        {
            gen = generators[(int)terrainDifficulty][new Random().Next(generators[(int)terrainDifficulty].Length)];
            //gen = new SmoothWithBluffsGenerator();////!
            if (Player.galleryMode)
            {
                bool timeToRegen = IslandGeneratorLoader.updateAndReturnIfNewCodeIsReady();
                if (timeToRegen)
                {
                    gen = IslandGeneratorLoader.getGenerator();
                }
            }

            gen.generateIsland(chunkSpace, setPieceManager, jobSiteManager, getLocationProfile());
        }
Esempio n. 2
0
 public void generateWithGenerator(IslandGenerator generator)
 {
     setPieceManager = new SetPieceManager();
     generator.generateIsland(chunkSpace, setPieceManager, jobSiteManager, getLocationProfile());
     chunkSpace.forceUpdateAllMeshes();
 }
        public static IslandGenerator getGenerator()
        {
            IslandGenerator instance = (IslandGenerator)compResults.CompiledAssembly.CreateInstance("IslandGame.GameWorld.TestGenerator");

            return(instance);
        }