コード例 #1
0
 public ServerBase(string name, int port, WvsCenter parent)
 {
     m_name     = name;
     m_center   = parent;
     m_thread   = new Executor(name);
     m_acceptor = new CAcceptor(port);
     m_acceptor.OnClientAccepted += OnClientAccepted;
 }
コード例 #2
0
 //-----------------------------------------------------------------------------
 public WvsGame(WvsCenter parent, byte channel) : base($"WvsGame{channel}", Constants.GamePort + channel, parent)
 {
     ChannelId = channel;
     CFieldMan = new Dictionary <int, CField>();
 }