public void PublishEvent(IEvent anEvent) { var packet = new Packet(PacketOrigin.Server, false, 0, anEvent.ToWords()); foreach(var session in this.PacketSessions) { session.SendToClient(packet); } }