コード例 #1
0
 private bool onSessionStarted(SessionEvents.SessionStartedEvent evt)
 {
     while (LastStates.Peek().Name == "createsuccess" || LastStates.Peek().Name == "createform" || LastStates.Peek().Name == "loginform" || LastStates.Peek().Name == "remembermesingleform" || LastStates.Peek().Name == "remembermemultipleform")
     {
         LastStates.Pop();
     }
     return(false);
 }
コード例 #2
0
 private bool onSessionStarted(SessionEvents.SessionStartedEvent evt)
 {
     if (gameSettings.EnablePushNotifications.Value && !string.IsNullOrEmpty(token))
     {
         enableMixPushNotifications();
     }
     return(false);
 }
コード例 #3
0
 private bool onSessionStarted(SessionEvents.SessionStartedEvent evt)
 {
     try
     {
         Crittercism.SetUsername(Service.Get <SessionManager>().LocalUser.DisplayName.Text);
     }
     catch (Exception)
     {
         Crittercism.SetUsername("<display name not set>");
     }
     return(false);
 }
コード例 #4
0
        private bool onSessionStarted(SessionEvents.SessionStartedEvent evt)
        {
            ILocalUser localUser = Service.Get <SessionManager>().LocalUser;
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary.Add("swid", localUser.HashedId);
            Service.Get <ICPSwrveService>().UserUpdate(dictionary);
            Service.Get <CommerceService>().setBiUserId(localUser.HashedId);
            networkServicesManager.PlayerStateService.SetAccessToken(evt.AccessToken);
            networkServicesManager.PlayerStateService.SetSWID(evt.LocalPlayerSwid);
            networkServicesManager.PlayerStateService.GetLocalPlayerData(this);
            return(false);
        }
コード例 #5
0
        private bool onSessionStarted(SessionEvents.SessionStartedEvent evt)
        {
            ILocalUser localUser = Service.Get <SessionManager>().LocalUser;

            if (string.IsNullOrEmpty(localUser.RegistrationProfile.Username))
            {
                localUser.RefreshProfile(onProfileUpdated);
            }
            else
            {
                setupSession();
            }
            return(false);
        }
コード例 #6
0
ファイル: EventLogger.cs プロジェクト: smdx24/CPI-Source-Code
 private bool onSessionStarted(SessionEvents.SessionStartedEvent evt)
 {
     Service.Get <ICPSwrveService>().StartTimer("getprofiletimer", "cp_profile_data");
     return(false);
 }