Stratkit Newspaper State Loader¶
Responsible for loading the UltNewspaperState of the game server.
Setup¶
- Create a
ScriptableObject
instance ofNewspaperStateLoaderModule
and add it to the BootstrapManager modules. - Create a
ScriptableObject
instance ofSerializableArticleTypeConfigCollection
and add it to the BootstrapManager configs. - Create a
ScriptableObject
instance of every desired article (e.g.ProvinceCapturedSerializableArticleTypeConfig
) and link them in the newly createdSerializableArticleTypeConfigCollection
.
Newspaper Articles¶
The Newspaper Articles are data containers with all the necessary information to prepare and localize a newspaper article on the client side.
They're contained in the newsArticles
field of the Newspaper State request response.
Implementing new article types¶
- Create a new class inheriting from
SerializableArticleTypeConfig
. - Create a
ScriptableObject
of this class and add it to theSerializableArticleTypeConfigCollection
instance.