Stratkit Newspaper State Loader¶
Responsible for loading the UltNewspaperState of the game server.
Setup¶
- Create a
ScriptableObjectinstance ofNewspaperStateLoaderModuleand add it to the BootstrapManager modules. - Create a
ScriptableObjectinstance ofSerializableArticleTypeConfigCollectionand add it to the BootstrapManager configs. - Create a
ScriptableObjectinstance 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
ScriptableObjectof this class and add it to theSerializableArticleTypeConfigCollectioninstance.