Structed / godot-playfab

A Godot Engine addon/SDK to interface with Azure PlayFab - playfab.com
MIT License
126 stars 14 forks source link

How do players receive signal events? #124

Closed shafnaz closed 1 year ago

shafnaz commented 1 year ago

i have a board game with 4 players. as 1 player makes a move, i send the data to playfab, either playstream or telemetry, and it's done successfully. How do other players listen to these events to update their side of the game? what's the signal for getting that data? But i also have to make sure I'm sending the data to those specific players, and not others. Thank you.

Structed commented 1 year ago

Hi this is not something godot-playfab is great at. Since godot-playfab only covers the PlayFab Services API (the REST API), you cannot do real-time notifications.

This is where PlayFab Lobby with its PubSub system would shine, or PlayFab Party, so you can put everyone in a peer-to-peer network and share data. The "problem" Here is, that godot-playfab does not integrate those features yet. You may only use this by integrating the native C++ SDKs.

If you really want to do it with godot-playfab, you can do it this way (but with polling instead of notifications):

And so forth.

Structed commented 1 year ago

This should have been a discussion. If you're want to consider discussing this further, please use discussions or the discord.

Thank you!

shafnaz commented 1 year ago

i see. Thank you. Great job with the plugin, looking forward to new things with this addon!