Siv3D / OpenSiv3D

C++20 framework for creative coding 🎮🎨🎹 / Cross-platform support (Windows, macOS, Linux, and the Web)
https://siv3d.github.io/
MIT License
994 stars 136 forks source link

Multiplayer_Photon::getHostID() #1243

Open comefrombottom opened 1 month ago

comefrombottom commented 1 month ago

追加する機能の内容 | Describe the solution you'd like Multiplayer_Photon::getHostID() 同ルーム内のhostのLocalPlayerIDを返す。

その機能の追加によって解決する問題 | Is your feature request related to a problem? Please describe. ルーム内の同オブジェクトに複数プレイヤーが関与する際、競合が発生しないようにホストにデータ変更のリクエストを送り、ホストがデータ変更をするのがおそらく良いやり方だが、ホストのidを取得するにはplayerリストを回さなければならず、面倒くさい。

備考 | Additional context