Skip to main content

Module scenario

Module scenario 

Source
Expand description

Achievements, scenarios and tutorials (Game/Achievement, Game/Scenario). See docs/ACHIEVEMENTS.md and docs/TUTORIAL.md.

  • Achievement::Achievement: its string table, title, description, sprite sheet and sprite, and its goals.
  • A string table and text; then each class’s own block: BuildingGoal, PopulationGoal, StatGoal, TimeGoal, FinishTutorialGoal.
  • Scenario: an achievement, then the game it starts.
  • Tutorial and its steps, setups, goals and images.

Original: Achievement::Achievement::Serialize, Achievement::Goal, FUN_1400dcb70, FUN_1400dcd40, FUN_1400dfd80, FUN_1400dfff0, FUN_1400dcea0, FUN_1400ae840, FUN_1400e3fa0.

Original: Runtime 0x18009eb70, Runtime 0x18009fd30.

Structs§

Achievement
Achievement::Achievement.
Goal
Achievement::Goal.
Scenario
Scenario (an Achievement).
Tutorial
Tutorial: its steps, its window (a UIDescription template, opened at the right edge), the scenario to start when it is done (none below 0).
TutorialStep
TutorialStep: a checkpoint (a loaded game resumes at the latest one), the string table, the texts before and after, images, setups, goals.

Enums§

GoalKind
A Goal’s own fields, by class.
ImageExtra
What a tutorial image adds: a key name, an input key, or a toolbar icon.
TutorialPart
One part of a tutorial: the tutorial itself, a step, or a set-up dialog.

Functions§

achievement_description
Read a Achievement from the bytes of its resource.
goal
Read a Goal from the bytes of its resource.
scenario
Read a Scenario from the bytes of its resource.
tutorial_part
Read a TutorialPart from the bytes of its resource.