Player12
An open source football management simulator
Loading...
Searching...
No Matches
onboarding.h File Reference
#include <cstddef>
#include <cstdint>
#include <utility>

Go to the source code of this file.

Classes

class  OnboardingState
 Progress of the first-week checklist. More...
 

Enumerations

enum class  OnboardingTask : std::uint8_t {
  ReviewTactics = 0 , CheckSquad , BoardObjective , SetTraining ,
  ExploreMarket , PlayFirstMatch , COUNT
}
 Steps of the first-week checklist of a new career. More...
 

Functions

const char * onboardingTaskKey (OnboardingTask task)
 
const char * onboardingTaskHelpKey (OnboardingTask task)
 

Variables

constexpr std::size_t ONBOARDING_TASK_COUNT
 

Enumeration Type Documentation

◆ OnboardingTask

enum class OnboardingTask : std::uint8_t
strong

Steps of the first-week checklist of a new career.

Bit positions are persisted (GuidanceState.onboarding_done); append new steps at the end.

Enumerator
ReviewTactics 

Tactics screen opened.

CheckSquad 

Squad screen opened.

BoardObjective 

Club screen (board objective) opened.

SetTraining 

Training screen opened.

ExploreMarket 

Transfers or scouting opened.

PlayFirstMatch 

First match of the managed club played.

COUNT 

Function Documentation

◆ onboardingTaskHelpKey()

const char * onboardingTaskHelpKey ( OnboardingTask  task)

Language key of the one-line explanation of a step.

◆ onboardingTaskKey()

const char * onboardingTaskKey ( OnboardingTask  task)

Language key of a checklist step's label.

Variable Documentation

◆ ONBOARDING_TASK_COUNT

constexpr std::size_t ONBOARDING_TASK_COUNT
inlineconstexpr
Initial value:
=
static_cast<std::size_t>(std::to_underlying(OnboardingTask::COUNT))