Exemplo 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());
        }
Exemplo n.º 2
0
 public void generateWithGenerator(IslandGenerator generator)
 {
     setPieceManager = new SetPieceManager();
     generator.generateIsland(chunkSpace, setPieceManager, jobSiteManager, getLocationProfile());
     chunkSpace.forceUpdateAllMeshes();
 }
Exemplo n.º 3
0
        public static IslandGenerator getGenerator()
        {
            IslandGenerator instance = (IslandGenerator)compResults.CompiledAssembly.CreateInstance("IslandGame.GameWorld.TestGenerator");

            return(instance);
        }