protected virtual void MessageHandler(Utility.IComponent sender, Utility.Messages.NomeAggiornatoMessageEventArgs e) { foreach (Utility.IComponent c in _components) { if (c is MySocket) { c.Input(e); } } }
protected virtual void SocketMessageHandler(MySocket sender, Utility.Messages.NomeAggiornatoMessageEventArgs e) { foreach (Utility.IComponent c in _components) { if (c is GestoreSchedeMaster) { c.Input(new GestoreGiocatoriMessageEventArgs(sender.RemoteAddress, e)); } } }