/// <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(); }
/// <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(); }
public static void SetPresenceMode(this PlayerIndex player, GamerPresenceMode presenceMode) { SignedInGamer gamer = Gamer.SignedInGamers[player]; if (gamer != null) { gamer.Presence.PresenceMode = presenceMode; } }
//* -----------------------------------------------------------------------* /// <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; }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="mode">プレゼンス モード。</param> public SPresence(GamerPresenceMode mode) : this(mode, null) { }
//* ────────────-_______________________* //* constructor & destructor ───────────────────────* //* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="mode">プレゼンス モード。</param> /// <param name="value">カスタム状態値。</param> public SPresence(GamerPresenceMode mode, int?value) { this.mode = mode; this.value = value; }