mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
perforamce + fix chapter 2 match starting
This commit is contained in:
19
Project Reboot 3.0/FortGameMode.cpp
Normal file
19
Project Reboot 3.0/FortGameMode.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "FortGameMode.h"
|
||||
|
||||
void AFortGameMode::SetCurrentPlaylistName(UObject* Playlist) // Techinally it takes in a fname
|
||||
{
|
||||
if (!Playlist)
|
||||
{
|
||||
LOG_WARN(LogGame, "AFortGameMode::SetCurrentPlaylistName: Invalid playlist.");
|
||||
return;
|
||||
}
|
||||
|
||||
static auto PlaylistNameOffset = Playlist->GetOffset("PlaylistName");
|
||||
static auto PlaylistIdOffset = Playlist->GetOffset("PlaylistId");
|
||||
|
||||
static auto CurrentPlaylistNameOffset = GetOffset("CurrentPlaylistName");
|
||||
static auto CurrentPlaylistIdOffset = GetOffset("CurrentPlaylistId");
|
||||
|
||||
Get<FName>(CurrentPlaylistNameOffset) = Playlist->Get<FName>(PlaylistNameOffset);
|
||||
Get<int>(CurrentPlaylistIdOffset) = Playlist->Get<int>(PlaylistIdOffset);
|
||||
}
|
||||
Reference in New Issue
Block a user