//* -----------------------------------------------------------------------* /// <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; } } } }
private bool GetBoolGamerPrivilege(PlayerIndex player, String privilegePropertyName) { bool result = false; signedInGamers = Gamer.SignedInGamers; PropertyInfo selectedPrivilege = typeof(GamerPrivileges).GetProperty(privilegePropertyName, typeof(bool)); foreach (SignedInGamer gamer in signedInGamers) { if (gamer.PlayerIndex == player) { result = (bool)selectedPrivilege.GetValue(gamer.Privileges, null); break; } } return result; }