상속: System.EventArgs
예제 #1
0
        /// <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);
        }
예제 #2
0
 protected virtual void OnSignedIn(SignedInEventArgs e)
 {
     if (SignedInGamer.SignedIn == null)
     {
         return;
     }
     SignedInGamer.SignedIn((object)this, e);
 }
예제 #3
0
 protected virtual void OnSignedIn(SignedInEventArgs e)
 {
     if (SignedIn != null)
     {
         // Invokes the delegates.
         SignedIn(this, e);
     }
 }
예제 #4
0
        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));
            }
        }
예제 #5
0
        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);
        }
예제 #6
0
 void OnSignedIn(object sender, SignedInEventArgs e)
 {
     SignedInGamer.SignedIn -= new EventHandler<SignedInEventArgs>(OnSignedIn);
     LoadHighScores();
 }
예제 #7
0
 void OnSignedIn(object sender, SignedInEventArgs e)
 {
     if (e.Gamer != null && e.Gamer.PlayerIndex == activePlayer)
     {
         SignedInGamer.SignedIn -= new EventHandler<SignedInEventArgs>(OnSignedIn);
         tryLoadHighScores = true;
     }
 }
예제 #8
0
 void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
 {
     e.Gamer.Tag = new Human(e.Gamer.Gamertag);
 }
예제 #9
0
 void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
 {
     if (_elapsedAvatarRender.Ticks <= TimeSpan.TicksPerSecond * 25)
     {
         AvatarDescription.BeginGetFromGamer(e.Gamer, avatarRetrieved, null);
     }
 }
예제 #10
0
        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);
        }
예제 #11
0
 protected virtual void OnSignedIn(SignedInEventArgs e)
 {
     EventHelpers.Raise(this, SignedIn, e);
 }
예제 #12
0
//        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);
			 }
		}
예제 #13
0
파일: Shorewood.cs 프로젝트: Zikomo/Leximo
        void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
        {
            if (e.Gamer.PlayerIndex == mainPlayer)
            {

            }
        }
예제 #14
0
 void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
 {
     if (sessionType != SessionType.None && session == null)
       {
     actOnType = true;
       }
 }
예제 #15
0
 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");
 }
예제 #16
0
 protected virtual void OnSignedIn(SignedInEventArgs e)
 {
   if (SignedInGamer.SignedIn == null)
     return;
   SignedInGamer.SignedIn((object) this, e);
 }
예제 #17
0
 public void SignedInGamer_SignedIn(Object sender, SignedInEventArgs e)
 {
     player = new Player(e.Gamer);
 }
예제 #18
0
 void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
 {
     e.Gamer.Tag = new Player(Content, e.Gamer.Gamertag  + e.Gamer.ToString());
 }
예제 #19
0
 void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
 {
     needsUpdate = true;
 }
예제 #20
0
 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
     }
 }
예제 #21
0
 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;
       }
 }
예제 #22
0
 /// <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);
     }
 }
예제 #23
0
파일: Game1.cs 프로젝트: AmilKey/AmilKey
 void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
 {
     e.Gamer.Tag = new Player();
 }
예제 #24
0
파일: V2DGame.cs 프로젝트: Hamsand/Swf2XNA
 protected void OnGamerSignIn(object sender, SignedInEventArgs e)
 {
     if (unlockWhenSignedIn)
     {
         if (!Guide.IsVisible)
         {
             unlockWhenSignedIn = false;
             UnlockTrial((int)(e.Gamer.PlayerIndex));
         }
     }
 }
예제 #25
0
 void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
 {
     _pong._nameP1 = e.Gamer.Gamertag;
 }
예제 #26
0
파일: Game1.cs 프로젝트: smelch/Stratego
 void SignedInGamer_SignedIn(object sender, SignedInEventArgs e)
 {
     Player1 = e.Gamer;
 }