public Server(string localAddr, Int32 port) { this.localAddr = localAddr; this.port = port; //Used to store information about the game world as well as save the game worldDataManager = new WorldDataManager(this); //Main server thread, listens for connections mainServerThread = new Thread(new ThreadStart(ListenForConnections)); mainServerThread.Start(); publisherThread = new Thread(new ThreadStart(PublishPackets)); publisherThread.Start(); }
public DatabaseManager(WorldDataManager wdm) { this.wdm = wdm; LoadDatabase(); StartAutosave(); }