示例#1
0
        public TerrainServer(TerrainCache db, TerrainGenerator generator)
        {
            myTerrainDb = db;
            myGenerator = generator;

            this.myTcpListener    = new TcpListener(IPAddress.Any, 4567);
            this.myListenerThread = new Thread(new ThreadStart(listenForClients));
            this.myListenerThread.Start();
        }
示例#2
0
 public LocalGeneratedTerrainSource(Initializer init, World world)
     : base(init, world)
 {
     myGenerator = new TerrainGenerator(init, world);
     startWorkerThread();
 }