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); } }
private void handleClient(object sender, OnSocketConnectionEventArgs e) { this.clients.Add(new GameClient(this.getUUID(), this, e.handler)); }