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()); }
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); }