mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
26
dependencies/reboot/Project Reboot 3.0/BP_IslandScripting.cpp
vendored
Normal file
26
dependencies/reboot/Project Reboot 3.0/BP_IslandScripting.cpp
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "BP_IslandScripting.h"
|
||||
|
||||
void ABP_IslandScripting_C::Initialize()
|
||||
{
|
||||
static auto UpdateMapOffset = GetOffset("UpdateMap", false);
|
||||
|
||||
if (UpdateMapOffset != -1)
|
||||
{
|
||||
Get<bool>(UpdateMapOffset) = true;
|
||||
this->OnRep_UpdateMap();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
// This spawns the beam.
|
||||
|
||||
this->IsDeimosActive() = true;
|
||||
this->OnRep_IsDeimosActive();
|
||||
*/
|
||||
}
|
||||
|
||||
ABP_IslandScripting_C* ABP_IslandScripting_C::GetIslandScripting()
|
||||
{
|
||||
auto AllIslandScriptings = UGameplayStatics::GetAllActorsOfClass(GetWorld(), StaticClass());
|
||||
return AllIslandScriptings.Num() > 0 ? (ABP_IslandScripting_C*)AllIslandScriptings.at(0) : nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user