Ejemplo n.º 1
0
        public void DoFightOver()
        {
            if (!this.m_bIsRecordMomentsEnable || !this.m_bIsStartRecordOk)
            {
                return;
            }
            this.UpdateRecordEvent(default(PoolObjHandle <ActorRoot>), CRecordUseSDK.RECORD_EVENT_PRIORITY.RECORD_EVENT_TYPE_INVALID);
            this.m_lGameEndTime = GameJoy.get_getSystemCurrentTimeMillis() - this.m_lGameStartTime;
            if (this.m_hostActor)
            {
                this.m_strHostPlayerName = this.m_hostActor.get_handle().name;
                uint mvpPlayer = Singleton <BattleStatistic> .get_instance().GetMvpPlayer(this.m_hostActor.get_handle().TheActorMeta.ActorCamp, true);

                if (mvpPlayer != 0u && mvpPlayer == this.m_hostActor.get_handle().TheActorMeta.PlayerId)
                {
                    this.m_bIsMvp = true;
                }
            }
            if (Singleton <BattleLogic> .GetInstance().battleStat != null && Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat != null)
            {
                PlayerKDA hostKDA = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat.GetHostKDA();

                if (hostKDA != null)
                {
                    this.m_iHostPlaterKillNum   = hostKDA.numKill;
                    this.m_iHostPlaterDeadNum   = hostKDA.numDead;
                    this.m_iHostPlaterAssistNum = hostKDA.numAssist;
                }
            }
            this.StopMomentsRecording();
        }
Ejemplo n.º 2
0
 private void OnGameJoyStartRecordResult(bool bRes)
 {
     this.m_bIsStartRecordOk = bRes;
     if (bRes)
     {
         this.m_lGameStartTime = GameJoy.get_getSystemCurrentTimeMillis();
     }
 }
Ejemplo n.º 3
0
    public void OnCheckSDKFeature(string sdkFeature)
    {
        int sdkFeature2 = -1;

        if (sdkFeature != null)
        {
            sdkFeature2 = Convert.ToInt32(sdkFeature);
        }
        GameJoy.OnCheckSDKFeature(sdkFeature2);
    }
Ejemplo n.º 4
0
    public void StopRecordingDuration(string duration)
    {
        long duration2 = -1L;

        if (duration != null)
        {
            duration2 = Convert.ToInt64(duration);
        }
        GameJoy.OnStopMomentsRecording(duration2);
    }
Ejemplo n.º 5
0
    public void IsStartRecordingSuccess(string success)
    {
        bool bResult = false;

        if (success != null && success.Equals("true"))
        {
            bResult = true;
        }
        GameJoy.OnStartMomentsRecording(bResult);
    }
Ejemplo n.º 6
0
        private void UpdateRecordEvent(PoolObjHandle <ActorRoot> eventActor, CRecordUseSDK.RECORD_EVENT_PRIORITY eventPriority)
        {
            if (!this.m_bIsRecordMomentsEnable || !this.m_bIsStartRecordOk)
            {
                return;
            }
            if (eventPriority != CRecordUseSDK.RECORD_EVENT_PRIORITY.RECORD_EVENT_TYPE_INVALID && Singleton <GamePlayerCenter> .get_instance().GetHostPlayer().Captain != eventActor)
            {
                return;
            }
            long num  = GameJoy.get_getSystemCurrentTimeMillis() - this.m_lGameStartTime;
            bool flag = false;

            if (eventActor && eventActor.get_handle().ActorControl != null)
            {
                HeroWrapper heroWrapper = eventActor.get_handle().ActorControl as HeroWrapper;
                if (heroWrapper != null)
                {
                    flag = heroWrapper.IsInMultiKill();
                }
            }
            if (!flag || eventPriority == CRecordUseSDK.RECORD_EVENT_PRIORITY.RECORD_EVENT_TYPE_INVALID)
            {
                if (this.m_enLastEventPriority > CRecordUseSDK.RECORD_EVENT_PRIORITY.RECORD_EVENT_TYPE_INVALID)
                {
                    this.AddRecordEvent(this.m_enLastEventPriority, this.m_lLastEventStartTime, this.m_lLastEventEndTime);
                }
                this.m_enLastEventPriority = eventPriority;
                this.m_lLastEventStartTime = num;
                this.m_lLastEventEndTime   = num;
            }
            else
            {
                if (this.m_enLastEventPriority != CRecordUseSDK.RECORD_EVENT_PRIORITY.RECORD_EVENT_TYPE_INVALID && eventPriority <= this.m_enLastEventPriority)
                {
                    return;
                }
                if (this.m_enLastEventPriority <= CRecordUseSDK.RECORD_EVENT_PRIORITY.RECORD_EVENT_TYPE_ASSIST)
                {
                    this.m_lLastEventStartTime = num;
                }
                this.m_enLastEventPriority = eventPriority;
                this.m_lLastEventEndTime   = num;
            }
        }
Ejemplo n.º 7
0
 private void CheckWhiteList()
 {
     GameJoy.CheckRecorderAvailability();
 }
Ejemplo n.º 8
0
 private void CheckPermission()
 {
     GameJoy.checkSDKPermission();
 }
Ejemplo n.º 9
0
 private void check(int sdkFeature)
 {
     Debug.Log("CheckSDKFeatureCallback: " + sdkFeature);
     GameJoy.OnCheckSDKFeature(sdkFeature);
 }
Ejemplo n.º 10
0
 private void onFail()
 {
     GameJoy.onUnSupport();
 }
Ejemplo n.º 11
0
 private void onSuccess()
 {
     GameJoy.onSupport();
 }