Skip to content
This repository was archived by the owner on Dec 15, 2019. It is now read-only.

Configuration

demiurghg edited this page May 1, 2016 · 2 revisions
  • Configuration properties in game modules

    • Use [Config] attribute to mark properties as configuration properties.
  • Custom configuration for game modules:

    • Override methods GetConfiguration and SetConfiguration in classes inherited from GameModule to implement your own configuration.
  • Saving and loading configuration

    • Call Game.LoadConfiguration( <path in user-storage directory> ) to load configuration.
    • Call Game.SaveConfiguration( <path in user-storage directory> ) to save configuration.
  • Notes on multi-threading:

    • Be sure that all structure properties larger than 4 (32-bit) or 8 (64-bit) bytes in config classes have lock on set and get.

Clone this wiki locally