CTR NEX API Reference
nn::nex::NotificationEvents 名前空間

NotificationEvents の名前空間 [詳解]

列挙型

enum  NotificationEvents {
  FriendEvent = 1,
  SessionLaunched = 2,
  ParticipationEvent = 3,
  OwnershipChangeEvent = 4,
  FriendStatusChangeEvent = 5,
  ForceDisconnectEvent = 6,
  GameSessionEvent = 7,
  ForceDisconnectPrincipalEvent = 8,
  ForceDisconnectAllPrincipalsEvent = 9,
  GameNotificationType1 = 101,
  GameNotificationType2 = 102,
  GameNotificationType3 = 103,
  GameNotificationType4 = 104,
  GameNotificationType5 = 105,
  GameNotificationType6 = 106,
  GameNotificationType7 = 107,
  GameNotificationType8 = 108,
  GatheringUnregistered = 109,
  HostChangeEvent = 110,
  GameNotificationLogout = 111,
  SubscriptionEvent = 112,
  GameServerMaintenance = 113,
  MaintenanceAnnouncement = 114,
  SystemEvent = 115,
  RoundStarted = 116,
  FirstRoundReportReceived = 117,
  RoundSummarized = 118,
  MatchmakeSystemConfigurationNotification = 119,
  MatchmakeSessionSystemPasswordSet = 120,
  MatchmakeSessionSystemPasswordClear = 121,
  AddedToGathering = 122,
  SharedLocalCacheUpdated = 123 ,
  ServiceSettingUpdated = 126 ,
  FirstUserNotification = 1000
}
 通知イベントの種別を定義する列挙子です。 [詳解]
 

詳解

NotificationEvents の名前空間

列挙型詳解

通知イベントの種別を定義する列挙子です。

通知イベントの種別を定義する列挙子です。NotificationEventHandler::ProcessNotiticationEvernt() に渡される NotificationEvent クラスオブジェクトにセットされます。

列挙値
FriendEvent 

使用されません

SessionLaunched 

A session has been launched.

This event is sent to all participants of a given Gathering when the gathering session is launched (MatchMakingClient::LaunchSession is called). The first parameter of the NotificationEvent indicates the ID of the Gathering (GatheringID) and the string parameter indicates the URL of the launched session.

使用されません

ParticipationEvent 

A Participation event has occurred.

The subtype of this event is ParticipationEvents. This event is sent to the target Process for the given Participation event that occurred. Refer to the description of each individual ParticipationEvents for details as to the type of ParticipationEvents that occurred and the target Process. The first parameter of the NotificationEvent indicates the type of ParticipationEvents, the second parameter the ID of the Gathering (GatheringID), and the string parameter indicates the associated message, if any.

ギャザリングの参加者の状態変更時(参加・退出など)にギャザリングのオーナーもしくは参加者に通知されるイベントです。 イベントの詳細(サブタイプ)は ParticipationEvents で定義されています。 NotificationEvent::GetParam1() でイベントが発生した GatheringID 、 NotificationEvent::GetParam2() で参加・退出したクライアントの PrincipalID、 NotificationEvent::GetStringParam() で付随するメッセージが取得できます。

OwnershipChangeEvent 

The ownership of a Gathering has been transferred to another Principal.

This event is sent to all participants in the Gathering when either MatchMakingClient::MigrateGatheringOwnership is called or the Gathering owner disconnects from the gathering and the GatheringFlags /MigrateOwner/ is set. The first parameter of the NotificationEvent indicates the ID of the Gathering (GatheringID) and the second parameter indicates the PrincipalID of the new owner.

ギャザリングのオーナー変更時にギャザリングの参加者全員に通知されるイベントです。 NotificationEvent::GetParam1() でイベントが発生した GatheringID 、 NotificationEvent::GetParam2() で新しいオーナーの PrincipalIDが取得できます。

FriendStatusChangeEvent 

The status (online/offline) of a friend has changed.

The first parameter of the NotificationEvent is the Pid of the principal that has changed status. The second parameter of the NotificationEvent is the FriendStatus of the principal that has changed status.

使用されません

ForceDisconnectEvent 

使用されません

GameSessionEvent 

An event triggered by the GameSession service has occurred.

The type of the GameSessionEvent can be retrieved through the NotificationEvent::GetSubType method.

使用されません

ForceDisconnectPrincipalEvent 

使用されません

ForceDisconnectAllPrincipalsEvent 

RDV node forces all user disconnection.

This is used to implement kick principal. The first parameter of the NotificationEvent is the pid of the principal generating the request (not to disconnect). The second parameter is currently set to 0

使用されません

GameNotificationType1 

同じゲームサーバーにログインしているフレンドに通知されるイベントです。 通知タイミング・通知データはアプリケーションが自由に定義することができます。

GameNotificationType2 

ゲーム定義イベント 2

GameNotificationType3 

ゲーム定義イベント 3

GameNotificationType4 

ゲーム定義イベント 4

GameNotificationType5 

ゲーム定義イベント 5

GameNotificationType6 

ゲーム定義イベント 6

GameNotificationType7 

ゲーム定義イベント 7

GameNotificationType8 

ゲーム定義イベント 8

GatheringUnregistered 

ギャザリングが削除されたときにギャザリングの参加者全員に通知されるイベントです。 NotificationEvent::GetParam1() でイベントが発生した GatheringID が取得できます。

HostChangeEvent 

ギャザリングのホスト変更時に、前回のホストに通知されるイベントです。 NotificationEvent::GetParam1() でイベントが発生した GatheringID が取得できます。

GameNotificationLogout 

ゲーム定義イベントをセットしていた場合に、 ゲームサーバーからログアウトしたときにフレンドに通知されるイベントです。 このログアウトは電源断などの非明示なログアウトも含みます。

SubscriptionEvent 

Subscriptionで通知されるイベントです。

GameServerMaintenance 

ゲームサーバーのメンテナンス開始通知イベントです。

MaintenanceAnnouncement 

ゲームサーバーのメンテナンス予告通知イベントです。 NotificationEvent::GetParam1() でメンテナンス開始時刻が "Unix Epoch Time" で取得でき、 DateTime::FromUnixEpochTime() を使用してサーバーメンテナンス時刻 (UTC) を取得できます。

SystemEvent 

ライブラリ内部用のイベントです。アプリケーションには通知されません。

RoundStarted 

ラウンド開始時にラウンド参加者全員に通知されるイベントです。 NotificationEvent::GetParam1() でラウンドIDが取得できます。

FirstRoundReportReceived 

ラウンドの最初のレポートをサーバが受信したときに参加者全員に通知されるイベントです。 NotificationEvent::GetParam1() でラウンドIDが取得できます。

RoundSummarized 

ラウンドの集計処理が終了したときに参加者全員に通知されるイベントです。 NotificationEvent::GetParam1() でラウンドIDが取得できます。

MatchmakeSystemConfigurationNotification 

Matchmakeで使用する通知用のイベントです。アプリケーションには通知されません。

MatchmakeSessionSystemPasswordSet 

参加しているマッチメイクセッションにマッチメイクセッションシステムパスワードが 設定されたときに参加者全員に通知されるイベントです。 NotificationEvent::GetStringParam() でマッチメイクセッションシステムパスワードが取得できます。

MatchmakeSessionSystemPasswordClear 

参加しているマッチメイクセッションのマッチメイクセッションシステムパスワードが 解除されたときに参加者全員に通知されるイベントです。

AddedToGathering 

自分自身がギャザリングに追加されたことを表します。 他のユーザーから MatchmakeExtensionClient::AutoMatchmake(), MatchmakeExtensionClient::JoinMatchmakeSession(), MatchmakeExtensionClient::CreateMatchmakeSession でギャザリングに追加されたときに追加されたユーザーに対して通知されます。 NotificationEvent::GetParam1() で追加されたギャザリングの ID、 NotificationEvent::GetParam2() で追加されたユーザのプリンシパル ID (つまり自分のプリンシパル ID)が取得できます。 NotificationEvent::GetStringParam() でイベント発生元ユーザーが参加時に指定した参加メッセージが取得できます。 NotificationEvent::GetSource() で参加させる RMC を呼び出したユーザーのプリンシパル ID を取得可能です。

SharedLocalCacheUpdated 

ライブラリ内部用のイベントです。アプリケーションには通知されません。

ServiceSettingUpdated 

ライブラリ内部用のイベントです。アプリケーションには通知されません。

FirstUserNotification 

使用されません