Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

[U] Game State

Stanislav Vasilev edited this page Feb 21, 2023 · 6 revisions

Creation

  1. Generate a game state class using the BuildTool
  2. Include the class's header into the game mode's header
  3. Call the standard make function
  4. You have a newly created game state

Usage

The Game State class is in exactly the same position as the Player State class. Semantically, you should use the Game State to track any state changes for the game like

  • A new area can be accessed
  • A door is opened
  • The time limit for the mission ran out

Casting

Use the standard casting function for casting between a generic pointer to it's base pointer type

Clone this wiki locally