Beispiel #1
0
        public LocalGenContainer()
        {
            LocalGenConfig config = GenerationState.get().localGenConfig;

            this.world            = GenerationState.get().world;
            heightsMap            = new float[config.areaSize, config.areaSize];
            config.localElevation = (int)(world.worldMap.elevation[config.location.x, config.location.y] * config.localElevation);
            Debug.Log("localGenContainer: area size" + config.areaSize);
            localMap = new LocalMap(config.areaSize, config.areaSize, config.localElevation + config.airLayersAboveGround);
        }
 protected LocalGenerator()
 {
     container = GenerationState.get().localGenContainer;
     config    = GenerationState.get().localGenConfig;
     bounds.set(0, 0, config.areaSize - 1, config.areaSize - 1);
 }