ネットワークテストロール設定
dx12_net_setupConfigure the network role for multiplayer testing in DX12 Engine. Choose host, client, or offline mode to set up listen server or connect to an address.
Instructions
次の dx12_play で自動 Host/Join するロールを設定する(ツールバーの Play ロールドロップダウンと同じ)。典型フロー: ①複製したいエンティティに set_component で networkIdentity + networkTransform を付ける → ②net_setup(role='host') → ③dx12_play → ④dx12_net_launch_test_client → ⑤dx12_net_status で players/RTT を確認。role='offline' で解除。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | client 時の接続先ポート。省略/0 でエンジン設定の defaultPort。 | |
| role | Yes | host=リッスンサーバー / client=address へ接続 / offline=マルチプレイ無効。 | |
| address | No | client 時の接続先 IP。省略で現状維持(既定 127.0.0.1)。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | エンジンからの生の結果。実際の形は各ツールの説明 / dx12_describe_components を参照。text にも同内容を JSON 文字列で格納。 |