question

drew avatar image
drew asked

What's the point of Entity Title Objects?

Since we already have Title Data, why would anyone bother with using the "new" Entity title object? Title Data allows up to 300k, while the entity object only allows 1k. Both allow key/value stores, so can easily be serialized to and from JSON to any C# datatype. I'm really struggling to see what value at all is added by Entties here. It seems to just limit it and make it worse because I can't make them very big. Appreciate any clarification.

entities
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

·
Neils Shi avatar image
Neils Shi answered

The Entity Title Object is a part of the Entity Programming Model. The APIs which related to Entity Objects are Entity APIs. It adheres to the following design goals below, and we believe that following these principles will result in fewer APIs that do more, are more efficient to maintain and operate, and are easier for developers to learn. In addition, the player (title_player_account entity) does not have access to the Entity Title Objects, only title entity can retrieve the Entity Title Objects.

1.Work with arbitrary types of entities.

2.Have explicit parameters for the entity Type and Id.

3.Perform a specific operation on a specific resource in the entity profile.

4.Can be called in multiple security contexts, such as from game clients, game servers, Cloud Script, back-end servers, etc., with the permissions defined by policies and selected according to which entity is calling the API.

Title data is often used to store and manage configuration data for games, it is best suited for Global Constant/Static Data, and it is not suitable or reliable as Global Variables. The APIs which related to Title data are classic APIs. To learn more about the differences between the Entity API and the classic API, you can refer to Comparison with Classic API. In addition, Title data keeps the title wide configuration variables accessible, and it can be retrieved on the client-side.

Since both of them can be used to store and manage data, you may decide which one to use based on the needs of your game, and you can also check their limits in Game Manager -> Title Settings - > Limit.

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.