/// <summary> /// Raised when the Live player signed in /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnLiveGamerSignedIn(object sender, SignedInEventArgs e) { var identifiedPlayer = new LiveIdentifiedPlayer(e.Gamer); LocalPlayers.Add(e.Gamer.PlayerIndex, identifiedPlayer); OnPlayerLogin(identifiedPlayer); }
protected virtual void OnSignedIn(SignedInEventArgs e) { if (SignedInGamer.SignedIn == null) { return; } SignedInGamer.SignedIn((object)this, e); }
protected virtual void OnSignedIn(SignedInEventArgs e) { if (SignedIn != null) { // Invokes the delegates. SignedIn(this, e); } }
private void DoPlayerConnected(object sender, SignedInEventArgs e) { Player player = Inputs.PlayersController.GetPlayer(e.Gamer.PlayerIndex); player.Profile = e.Gamer; if (player.State == PlayerState.Connecting) { player.State = PlayerState.Connected; NotifyPlayerConnected(Inputs.PlayersController.GetPlayer(e.Gamer.PlayerIndex)); } }
public static void Gamer_LoginSuccess(object sender, SignedInEventArgs e) { // set the local gamer to the signedin gamer gamer = e.Gamer; // begin asynchronously getting the player's profile. Do this because it may take time to get over the network otherwise. gamer.BeginGetProfile(endGetProfile, gamer); // remove the signedin handler SignedInGamer.SignedIn -= signInHandler; Console.WriteLine("Gamer: " + gamer.Gamertag + " signed in."); int maxNumberOfPlayers = 1; NetworkSession.BeginFind(NetworkSessionType.PlayerMatch, maxNumberOfPlayers, null, endFind, session); }
void OnSignedIn(object sender, SignedInEventArgs e) { SignedInGamer.SignedIn -= new EventHandler<SignedInEventArgs>(OnSignedIn); LoadHighScores(); }
void OnSignedIn(object sender, SignedInEventArgs e) { if (e.Gamer != null && e.Gamer.PlayerIndex == activePlayer) { SignedInGamer.SignedIn -= new EventHandler<SignedInEventArgs>(OnSignedIn); tryLoadHighScores = true; } }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { e.Gamer.Tag = new Human(e.Gamer.Gamertag); }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { if (_elapsedAvatarRender.Ticks <= TimeSpan.TicksPerSecond * 25) { AvatarDescription.BeginGetFromGamer(e.Gamer, avatarRetrieved, null); } }
internal static void SignInEventHandler(object sender, SignedInEventArgs e) { SignedInGamer gamer = e.Gamer; LocalGamer newGamer = new LocalGamer(gamer); SignedInGamers.Add(newGamer); #if DEBUG Log.Trace(String.Format("{0} signed in", newGamer.GamerTag), 4.0f); #endif if (OnSignedIn != null) OnSignedIn(newGamer); }
protected virtual void OnSignedIn(SignedInEventArgs e) { EventHelpers.Raise(this, SignedIn, e); }
// LeaderboardWriter _leaderboardWriter = new LeaderboardWriter(); // public LeaderboardWriter LeaderboardWriter // { // get // { // return _leaderboardWriter; // } // } #endregion protected virtual void OnSignedIn(SignedInEventArgs e) { if (SignedIn != null) { // Invokes the delegates. SignedIn(this, e); } }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { if (e.Gamer.PlayerIndex == mainPlayer) { } }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { if (sessionType != SessionType.None && session == null) { actOnType = true; } }
protected void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { e.Gamer.Tag = new Player(this, "Chaser", new Vector3(510 * spacing, terrain.surfaceHeight(510, 507), 507 * spacing), new Vector3(0, 1, 0), 0.80f, "redAvatarV3"); }
protected virtual void OnSignedIn(SignedInEventArgs e) { if (SignedInGamer.SignedIn == null) return; SignedInGamer.SignedIn((object) this, e); }
public void SignedInGamer_SignedIn(Object sender, SignedInEventArgs e) { player = new Player(e.Gamer); }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { e.Gamer.Tag = new Player(Content, e.Gamer.Gamertag + e.Gamer.ToString()); }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { needsUpdate = true; }
void gamerSignIn(object sender, SignedInEventArgs e) { if(e.Gamer == SignedInGamer.SignedInGamers[currentPlayerIndex]) { opt1.DisplayText = "Currently signed in"; SetMenuEntryText(); currentGamer = e.Gamer; netSessionProperties = new NetworkSessionProperties(); } else { //doesn't matter } }
void PlayerSignedIn( object sender, SignedInEventArgs e ) { if ( autoSignIn ) { //Debug.WriteLine( e.Gamer.Gamertag + " signed in" ); PlayerIndex playerIndex = e.Gamer.PlayerIndex; AddPlayer( ref slots[(int)playerIndex], playerIndex ); toggleAutoSignIn = true; } }
/// <summary> /// Handle signed in gamer event as start avatar loading /// </summary> void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { // Only load the avatar for player one if (e.Gamer.PlayerIndex == PlayerIndex.One) { // Load the player one avatar LoadAvatar(e.Gamer); } }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { e.Gamer.Tag = new Player(); }
protected void OnGamerSignIn(object sender, SignedInEventArgs e) { if (unlockWhenSignedIn) { if (!Guide.IsVisible) { unlockWhenSignedIn = false; UnlockTrial((int)(e.Gamer.PlayerIndex)); } } }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { _pong._nameP1 = e.Gamer.Gamertag; }
void SignedInGamer_SignedIn(object sender, SignedInEventArgs e) { Player1 = e.Gamer; }