Пример #1
0
 public TerrainPager(World w)
 {
     myWorld         = w;
     myTerrainSource = w.terrainSource;
     myDatabase      = w.database;
     myChunks        = w.chunks;
     interestChunk   = new Vector3i(-10000000, -10000000, -1000000);
     interestPoint   = new Vector3();
 }
Пример #2
0
        public World(Initializer init)
        {
            String source = init.findDataOr("terrain.source", "file");

            switch (source)
            {
            case "file":
                myTerrainSource = new LocalFileTerrainSource(init, this);
                break;

            case "generated":
                myTerrainSource = new LocalGeneratedTerrainSource(init, this);
                break;

            case "remote":
                myTerrainSource = new RemoteTerrainSource(init, this);
                break;
            }

            myPager = new TerrainPager(this);
        }