Skip to content

Stratkit Newspaper State Loader

Responsible for loading the UltNewspaperState of the game server.

Setup

  1. Create a ScriptableObject instance of NewspaperStateLoaderModule and add it to the BootstrapManager modules.
  2. Create a ScriptableObject instance of SerializableArticleTypeConfigCollection and add it to the BootstrapManager configs.
  3. Create a ScriptableObject instance of every desired article (e.g. ProvinceCapturedSerializableArticleTypeConfig) and link them in the newly created SerializableArticleTypeConfigCollection.

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

  1. Create a new class inheriting from SerializableArticleTypeConfig.
  2. Create a ScriptableObject of this class and add it to the SerializableArticleTypeConfigCollection instance.