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(); }
private void OnGameJoyStartRecordResult(bool bRes) { this.m_bIsStartRecordOk = bRes; if (bRes) { this.m_lGameStartTime = GameJoy.get_getSystemCurrentTimeMillis(); } }
public void OnCheckSDKFeature(string sdkFeature) { int sdkFeature2 = -1; if (sdkFeature != null) { sdkFeature2 = Convert.ToInt32(sdkFeature); } GameJoy.OnCheckSDKFeature(sdkFeature2); }
public void StopRecordingDuration(string duration) { long duration2 = -1L; if (duration != null) { duration2 = Convert.ToInt64(duration); } GameJoy.OnStopMomentsRecording(duration2); }
public void IsStartRecordingSuccess(string success) { bool bResult = false; if (success != null && success.Equals("true")) { bResult = true; } GameJoy.OnStartMomentsRecording(bResult); }
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; } }
private void CheckWhiteList() { GameJoy.CheckRecorderAvailability(); }
private void CheckPermission() { GameJoy.checkSDKPermission(); }
private void check(int sdkFeature) { Debug.Log("CheckSDKFeatureCallback: " + sdkFeature); GameJoy.OnCheckSDKFeature(sdkFeature); }
private void onFail() { GameJoy.onUnSupport(); }
private void onSuccess() { GameJoy.onSupport(); }