Пример #1
0
		private void MessageReceived(GameServer server, IProtocol message)
		{
			switch ((ProtocolDef)message.ProtocolId)
			{
				case ProtocolDef.g2e_getmeminfo_def:
					g2e_getmeminfo protocol = message as g2e_getmeminfo;
					server.UpdateMemoryInfo(protocol.nFreeMem, protocol.nTotalMem);
					break;
				default:
					break;
			}
		}