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