Beispiel #1
0
		private void MessageReceived(GameServer server, IProtocol message)
		{
			switch ((ProtocolDef)message.ProtocolId)
			{
				case ProtocolDef.g2e_getprocinfo_def:
					g2e_getprocinfo protocol = message as g2e_getprocinfo;
					procinfo[] infos = new procinfo[protocol.nProcCount];
					Array.Copy(protocol.Proc, infos, infos.Length);
					server.UpdateProcessInfo(infos);
					break;
				default:
					break;
			}
		}