Exemplo n.º 1
0
        protected virtual void OnClientEmitter(int idx, ClientHandler h)
        {
            OnSocketConnectionEventArgs e = new OnSocketConnectionEventArgs(idx, h);
            EventHandler <OnSocketConnectionEventArgs> handler = this.onClient;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
 private void handleClient(object sender, OnSocketConnectionEventArgs e)
 {
     this.clients.Add(new GameClient(this.getUUID(), this, e.handler));
 }