3#include "../IBaseApi.h"
51 if (!player_controller)
58 steam_id_map_[steam_id] = player_controller;
64 if (!player_controller)
71 steam_id_map_.erase(steam_id);
82 auto iter = steam_id_map_.find(steam_id);
84 if (iter != steam_id_map_.end()
85 && iter->first == steam_id)
87 found_player = iter->second;
101 return *API::game_api->GetApiUtils();
void SetCheatManager(UShooterCheatManager *cheatmanager)
void SetWorld(UWorld *uworld)
void SetShooterGameMode(AShooterGameMode *shooter_game_mode)
UShooterCheatManager * GetCheatManager() const override
Returns a point to URCON CheatManager.
AShooterGameMode * shooter_game_mode_
AShooterGameMode * GetShooterGameMode() const override
Returns a pointer to AShooterGameMode.
void RemovePlayerController(AShooterPlayerController *player_controller)
UShooterCheatManager * cheatmanager_
void SetPlayerController(AShooterPlayerController *player_controller)
ServerStatus GetStatus() const override
Returns the current server status.
AShooterPlayerController * FindPlayerFromSteamId_Internal(uint64 steam_id) const override
void SetStatus(ServerStatus status)
UWorld * GetWorld() const override
Returns a pointer to UWorld.
static uint64 GetSteamIdFromController(AController *controller)
Returns Steam ID from player controller.
IApiUtils & GetApiUtils()