예제 #1
0
 public static void On_GetAntiData(CSPkg msg)
 {
     if (!MonoSingleton <TssdkSys> .instance.bEnableTSS)
     {
         return;
     }
     TssSdk.TssSdkRcvAntiData(msg.stPkgData.stAntiDataSyn.szBuff, msg.stPkgData.stAntiDataSyn.wLen);
 }
예제 #2
0
 internal void SetAntiData(byte[] data, int len = 0)
 {
     if (data != null)
     {
         if (len == 0)
         {
             len = data.Length;
         }
         TssSdk.TssSdkRcvAntiData(data, (ushort)len);
     }
 }
 public void StartWithTalker(IApolloTalker talker, float intervalBetweenCollections = 2f)
 {
     this.intervalBetweenCollections = intervalBetweenCollections;
     this.ResetTimeInterval();
     this.talker = (talker as ApolloTalker);
     if (this.talker == null)
     {
         throw new Exception("Talker must not be null !");
     }
     this.talker.Register <ApolloTSS>(TalkerCommand.CommandDomain.TSS, delegate(ApolloTSS resp)
     {
         if (resp != null)
         {
             ADebug.Log("tss recv data len:" + resp.wLen);
             TssSdk.TssSdkRcvAntiData(resp.szData, resp.wLen);
         }
         else
         {
             ADebug.Log("Tss resp  is null");
         }
     });
 }
예제 #4
0
 public static void On_GetAntiData(CSPkg msg)
 {
     TssSdk.TssSdkRcvAntiData(msg.stPkgData.stAntiDataSyn.szBuff, msg.stPkgData.stAntiDataSyn.wLen);
 }
예제 #5
0
 private void OnReceiveServerDataToClient(byte[] data)
 {
     TssSdk.TssSdkRcvAntiData(data, (ushort)data.Length);
 }
예제 #6
0
 public void OnRcvWhichNeedToSendClientSdk(byte[] data, uint length)
 {
     Hotfix.PrintBytes("RCV " + this.tag, data);
     TssSdk.TssSdkRcvAntiData(data, (ushort)length);
 }