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(); }
public LocalGeneratedTerrainSource(Initializer init, World world) : base(init, world) { myGenerator = new TerrainGenerator(init, world); startWorkerThread(); }