mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
19 lines
703 B
C++
19 lines
703 B
C++
#include "FortPlaysetItemDefinition.h"
|
|
|
|
void UFortPlaysetItemDefinition::ShowPlayset(UFortPlaysetItemDefinition* PlaysetItemDef, AFortVolume* Volume)
|
|
{
|
|
auto VolumeToUse = Volume;
|
|
|
|
static auto PlaysetLevelStreamComponentClass = FindObject<UClass>("/Script/FortniteGame.PlaysetLevelStreamComponent");
|
|
auto LevelStreamComponent = (UPlaysetLevelStreamComponent*)VolumeToUse->GetComponentByClass(PlaysetLevelStreamComponentClass);
|
|
|
|
if (!LevelStreamComponent)
|
|
{
|
|
return;
|
|
}
|
|
|
|
static auto SetPlaysetFn = FindObject<UFunction>("/Script/FortniteGame.PlaysetLevelStreamComponent.SetPlayset");
|
|
LevelStreamComponent->ProcessEvent(SetPlaysetFn, &PlaysetItemDef);
|
|
|
|
LoadPlaysetOriginal(LevelStreamComponent);
|
|
} |