Ejemplo n.º 1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            _GameState = GamerPresenceMode.AtMenu;
            lvl_Test = new Level();
            lvl_Test.Initialize();

            base.Initialize();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            _GameState = GamerPresenceMode.AtMenu;
            lvl_Test   = new Level();
            lvl_Test.Initialize();

            base.Initialize();
        }
Ejemplo n.º 3
0
        public static void SetPresenceMode(this PlayerIndex player, GamerPresenceMode presenceMode)
        {
            SignedInGamer gamer = Gamer.SignedInGamers[player];

            if (gamer != null)
            {
                gamer.Presence.PresenceMode = presenceMode;
            }
        }
Ejemplo n.º 4
0
 //* -----------------------------------------------------------------------*
 /// <summary>プレゼンス情報を設定します。</summary>
 ///
 /// <param name="mode">現在の状態モード。</param>
 /// <param name="value">カスタム状態値。</param>
 public void setPresence(GamerPresenceMode mode, int?value)
 {
     if (CGuideWrapper.instance.isAvaliableUseGamerService)
     {
         SignedInGamerCollection collection = SignedInGamer.SignedInGamers;
         for (int i = collection.Count; --i >= 0;)
         {
             GamerPresence presence = collection[i].Presence;
             presence.PresenceMode = mode;
             if (value.HasValue)
             {
                 presence.PresenceValue = value.Value;
             }
         }
     }
 }
 internal GamerPresence()
 {
     presenceMode  = GamerPresenceMode.None;
     PresenceValue = 0;
 }
Ejemplo n.º 6
0
 //* -----------------------------------------------------------------------*
 /// <summary>コンストラクタ。</summary>
 ///
 /// <param name="mode">プレゼンス モード。</param>
 public SPresence(GamerPresenceMode mode) : this(mode, null)
 {
 }
Ejemplo n.º 7
0
        //* ────────────-_______________________*
        //* constructor & destructor ───────────────────────*

        //* -----------------------------------------------------------------------*
        /// <summary>コンストラクタ。</summary>
        ///
        /// <param name="mode">プレゼンス モード。</param>
        /// <param name="value">カスタム状態値。</param>
        public SPresence(GamerPresenceMode mode, int?value)
        {
            this.mode  = mode;
            this.value = value;
        }