Example #1
0
		public PlugInInfo(pluginfo info)
		{
			_desc = info.szDesc;
			_author = info.szAuthor;
			_guid = info.szGUID;
			_moduleInfo = info.szModHAndModE;
			_path = info.szPath;
			_version = info.szVersion;
		}
Example #2
0
	public g2e_getpluginfo()
	{
		PlugCount = 0;
		PlugInfo = new pluginfo[5];
		for(int i = 0; i < 5; i++)
		{
			PlugInfo[i] = new pluginfo();
		}
	}
Example #3
0
		public void UpdatePlugInInfo(pluginfo[] infos)
		{
			if (infos != null)
			{
				lock (_plugInInfoList.SyncRoot)
				{
					_plugInInfoList.Clear();
					for (int i = 0; i < infos.Length; i++)
					{
						_plugInInfoList.Add(new PlugInInfo(infos[i]));
					}
				}
			}
		}
Example #4
0
		private void MessageReceived(GameServer server, IProtocol message)
		{
			switch ((ProtocolDef)message.ProtocolId)
			{
				case ProtocolDef.g2e_getpluginfo_def:
					g2e_getpluginfo protocol = message as g2e_getpluginfo;
					pluginfo[] infos = new pluginfo[protocol.PlugCount];
					Array.Copy(protocol.PlugInfo, infos, infos.Length);
					server.UpdatePlugInInfo(infos);
					break;
				default:
					break;
			}
		}