protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request) { MonTgt_H2G_Client_AddUDPToList tgtSrc = request as MonTgt_H2G_Client_AddUDPToList; if (tgtSrc != null) { FFTgt_B2B_Client tgtDest = new FFTgt_B2B_Client(); FFTgt_H2G_Client_AddUDPToList ffTgtGameIdInfo = new FFTgt_H2G_Client_AddUDPToList() { ServerIP = tgtSrc.ServerIP, Port = tgtSrc.Port, PollingID = tgtSrc.PollingID, Type = tgtSrc.Type, InstallationNo = tgtSrc.InstallationNo, }; tgtDest.AddTarget(ffTgtGameIdInfo); return(tgtDest); } return(null); }
protected override bool OnProcessMessageH2GExternal_GMU(FFTgtExecutionContext context, IFreeformEntity_MsgTgt target) { FFTgt_H2G_Client_AddUDPToList tgtSrc = target as FFTgt_H2G_Client_AddUDPToList; return(ExCommsExecutorFactory.AddInstallation(tgtSrc.InstallationNo)); }