ALimenGameModeBase
Overview
ALimenGameModeBase is a custom game mode class that extends AGameModeBase. It manages various aspects of the game, including player management, manager registration, and level streaming. This class ensures that all necessary managers are properly initialized and maintained throughout the game's lifecycle.
Properties
Type | Name | Access | Description |
|---|---|---|---|
| OnGamePauseStateChanged | Public | A delegate that is called when the game pause state changes. |
Functions
Return Type | Signature | Description |
|---|---|---|
|
| Initializes the game mode with the specified map and options. Sets up managers and handles initial level streaming. |
|
| Called when a player logs in. Adds the player to the game state and sets up client readiness notifications. |
|
| Called when a player logs out. Removes the player from the game state. |
|
| Pauses the game and broadcasts the pause state change using the delegate. |
|
| Clears the pause state and broadcasts the pause state change using the delegate. |
|
| Ticks the game mode, calling |
|
| Retrieves the current instance of |
|
| Retrieves a manager of type |
|
| Retrieves all managers of type |
|
| Resets all registered managers. |
|
| Checks if all initial level streaming is complete. |
|
| Registers an actor with a manager of type |
Usage & Implementation Notes
Threading Constraints: This class does not have any specific threading constraints.
Replication Requirements: None.
Memory Lifetime Management: Managers are managed using weak pointers to avoid memory leaks. The
ResetManagersfunction resets all managers, ensuring proper cleanup.Initialization Dependencies: The game mode depends on the presence of various manager classes and player controller classes. Ensure these classes are properly defined and initialized before using this game mode.