Exemplo n.º 1
0
        public void reset()
        {
            if (chunksReset != null)
            {
                chunksReset();
            }

            myChunks.Clear();
            MaterialManager.reset();
            myTerrainSource.reset();
        }
Exemplo n.º 2
0
        public override bool execute(World w)
        {
            saveState(w, myLocation);
            if (myChunk != null)
            {
                UInt32 m = MaterialManager.getMaterialIndex(myMaterialName);
                myChunk.setNodeMaterial(myLocation.node, m);
                return(true);
            }

            return(false);
        }
Exemplo n.º 3
0
        public void init(Initializer init)
        {
            MaterialManager.init(true);

            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);
        }
Exemplo n.º 4
0
 public void init()
 {
     MaterialManager.init(true);
 }