Skip to content

SP campaign data structure

L.J. Lim edited this page Apr 5, 2015 · 3 revisions

Planet definition

  • Name
  • X/Y position on galaxy map
  • Mission ID
  • Planet image
  • Text blurb
  • Planets unlocked by this
  • Unlock rewards
  • Associated journal entries
  • Other variables
  • bool: Hide if not unlocked

Campaign definition

  • Name
  • Planets
  • Journal entries
  • Background image
  • Icon (for hypothetical multi-campaign selector)
  • Text blurb

Campaign progress data store

  • Planets unlocked
  • Journal entries unlocked
  • Comm modules unlocked
  • Other miscellaneous variables

Each journal entry should be assembled at read time from several different bits of text, selected based on variables set during campaign progress

Journal entry

  • Name
  • Image (optional)
  • All associated text fragments
  • Code to select which fragments to use

Journal text fragment

  • Text