コード例 #1
0
 // Token: 0x0600000D RID: 13 RVA: 0x00002580 File Offset: 0x00000780
 public bool TriggerAfAdvEvent(EAppsFlayerEvent eventType)
 {
     if (!this.bNeedCheckEvent)
     {
         this.DebugMsg("ALL EVENT Allready Trigger", EAppsFlayerEvent.eMax);
         return(false);
     }
     if (eventType >= EAppsFlayerEvent.eMax)
     {
         this.DebugMsg("eventType >= EAppsFlayerEvent.eMax", EAppsFlayerEvent.eMax);
         return(false);
     }
     if (this.CheckRequirement(eventType))
     {
         if (eventType == EAppsFlayerEvent.HEROSTAGE1_3_COMPLETION)
         {
             IGGSDKPlugin.HeroStageCompletion();
         }
         else if (eventType == EAppsFlayerEvent.TUTORIAL_COMPLETION)
         {
             IGGSDKPlugin.AppsFlyerTutorialCompletion();
         }
         else
         {
             IGGSDKPlugin.AppsFlyerAdvance(eventType.ToString());
         }
         if (eventType <= EAppsFlayerEvent.BUY_SUPPLYCHEST)
         {
             this.m_SaveData |= 1L << (int)eventType;
         }
         else
         {
             this.m_SaveData2 |= 1L << eventType - EAppsFlayerEvent.BUY_SUPPLYCHEST - 1;
         }
         this.SaveEventData(eventType);
         return(true);
     }
     return(false);
 }