question

Miquel avatar image
Miquel asked

What's the best way to achieve POI data?

Hello,

in our game we have POIs (points of interest) which the players can interact

We would like to associate some data to this POIs.

What would be the best approach?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

It looks to me that what you need is the ability to store the POI data and interact with it (CRUD). If that’s the case, PlayFab provides two models for storing and interacting with player data :

Entity: Allows you to store data in objects and files across Players, Characters, and Groups, in your case, you can store the POI and associated data into the Player Entity using Entity Objects , please navigate to the links to learn more.

UserData: Allows you to store key/value pair data for players, in your case, you can store the POI as the key and associated data as the value.

It is recommended that you utilize Entity Objects, which is more flexible and performant for your game.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.