Class AGKMLGameModeBase

Inheritance Relationships

Base Type

  • public AGameModeBase

Class Documentation

class AGKMLGameModeBase : public AGameModeBase

Public Functions

AGKMLGameModeBase()
virtual void ResetLevel() override
virtual bool HasMatchEnded() const override

Returns true if GameOver() has been called, false otherwise

virtual void GameOver()

Called when the game is over i.e. the player dies, the time runs out or the game is finished

Protected Functions

void K2_ResetLevel()

Expose ResetLevel to blueprint so we can implement custom logic when the ML environment is reset.

void K2_OnGameOver()

Expose GameOver to blueprint so we can cleanup the level before calling ResetLevel.

Protected Attributes

uint32 bGameOver