Exemplo n.º 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);
 }
 private bool onSessionStarted(SessionEvents.SessionStartedEvent evt)
 {
     if (gameSettings.EnablePushNotifications.Value && !string.IsNullOrEmpty(token))
     {
         enableMixPushNotifications();
     }
     return(false);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 6
0
 private bool onSessionStarted(SessionEvents.SessionStartedEvent evt)
 {
     Service.Get <ICPSwrveService>().StartTimer("getprofiletimer", "cp_profile_data");
     return(false);
 }