internal SignedInGamer(
            string gamertag,
            bool isSignedInToLive   = false,
            bool isGuest            = false,
            PlayerIndex playerIndex = PlayerIndex.One
            ) : base(gamertag, gamertag)
        {
            IsGuest          = isGuest;
            IsSignedInToLive = isSignedInToLive;
            PlayerIndex      = playerIndex;

            // TODO: Everything below
            GameDefaults = new GameDefaults();
            Presence     = new GamerPresence();
            Privileges   = new GamerPrivileges();
            PartySize    = 1;
        }
Exemple #2
0
        internal SignedInGamer(
            CSteamID id,
            string gamertag,
            bool isSignedInToLive   = false,
            bool isGuest            = false,
            PlayerIndex playerIndex = PlayerIndex.One
            ) : base(id, gamertag, gamertag)
        {
            IsGuest          = isGuest;
            IsSignedInToLive = isSignedInToLive;
            PlayerIndex      = playerIndex;

            statsStored = Callback <UserStatsStored_t> .Create(OnStatsStored);

            statsReceived = Callback <UserStatsReceived_t> .Create(OnStatsReceived);

            // TODO: Everything below
            GameDefaults = new GameDefaults();
            Presence     = new GamerPresence();
            Privileges   = new GamerPrivileges();
            PartySize    = 1;
        }
Exemple #3
0
 internal static void Initialize()
 {
     _touches = new Touch[ApplicationSettings.DefaultCapacities.Touches];
     #if WINDOWS_PHONE
     TouchPanel.EnabledGestures = GestureType.None;
     #endif
     #if XBOX
     SignedInGamer.SignedIn += new EventHandler<SignedInEventArgs>((obj, eventArgs) =>
         {
             SignedInGamer gamer = eventArgs.Gamer;
             _gameDefaults = gamer.GameDefaults;
             if (_gameDefaults.MoveWithRightThumbStick)
             {
                 _moveWithRightThumbStick = true;
             }
         });
     #endif
 }