From bea0e1b73591fa28f7c1389f84a6ab4be251f27a Mon Sep 17 00:00:00 2001 From: PHILIP White Date: Wed, 9 Nov 2022 21:24:36 +0000 Subject: [PATCH] Updated TurnBaseCombat to Reference Actors Grabs all actors active within scene --- Config/DefaultEngine.ini | 4 +-- Config/HoloLens/HoloLensEngine.ini | 31 ++++++++++++++++++++ Source/the_twilight_abyss/TurnBaseCombat.cpp | 5 ++-- 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 Config/HoloLens/HoloLensEngine.ini diff --git a/Config/DefaultEngine.ini b/Config/DefaultEngine.ini index c04c7eb..65e900d 100644 --- a/Config/DefaultEngine.ini +++ b/Config/DefaultEngine.ini @@ -17,7 +17,7 @@ ManualIPAddress= +ActiveGameNameRedirects=(OldGameName="TP_ThirdPerson",NewGameName="/Script/the_twilight_abyss") [/Script/EngineSettings.GameMapsSettings] -EditorStartupMap=/Engine/Maps/Templates/OpenWorld.OpenWorld +EditorStartupMap=/Game/Levels/Main.Main LocalMapOptions= TransitionMap=None bUseSplitscreen=True @@ -26,7 +26,7 @@ ThreePlayerSplitscreenLayout=FavorTop FourPlayerSplitscreenLayout=Grid bOffsetPlayerGamepadIds=False GameInstanceClass=/Script/Engine.GameInstance -GameDefaultMap=/Engine/Maps/Templates/OpenWorld.OpenWorld +GameDefaultMap=/Game/Levels/Main.Main ServerDefaultMap=/Engine/Maps/Entry.Entry GlobalDefaultGameMode=/Game/GameMode/MainGameMode.MainGameMode_C GlobalDefaultServerGameMode=None diff --git a/Config/HoloLens/HoloLensEngine.ini b/Config/HoloLens/HoloLensEngine.ini new file mode 100644 index 0000000..b87360b --- /dev/null +++ b/Config/HoloLens/HoloLensEngine.ini @@ -0,0 +1,31 @@ + + +[/Script/HoloLensPlatformEditor.HoloLensTargetSettings] +bBuildForEmulation=False +bBuildForDevice=True +bUseNameForLogo=True +bBuildForRetailWindowsStore=False +bAutoIncrementVersion=False +bShouldCreateAppInstaller=False +AppInstallerInstallationURL= +HoursBetweenUpdateChecks=0 +bEnablePIXProfiling=False +TileBackgroundColor=(B=64,G=0,R=0,A=255) +SplashScreenBackgroundColor=(B=64,G=0,R=0,A=255) ++PerCultureResources=(CultureId="",Strings=(PackageDisplayName="",PublisherDisplayName="",PackageDescription="",ApplicationDisplayName="",ApplicationDescription=""),Images=()) +TargetDeviceFamily=Windows.Holographic +MinimumPlatformVersion= +MaximumPlatformVersionTested=10.0.22000.0 +MaxTrianglesPerCubicMeter=500.000000 +SpatialMeshingVolumeSize=20.000000 +CompilerVersion=Default +Windows10SDKVersion=10.0.18362.0 ++CapabilityList=internetClientServer ++CapabilityList=privateNetworkClientServer ++Uap2CapabilityList=spatialPerception +bSetDefaultCapabilities=False +SpatializationPlugin= +ReverbPlugin= +OcclusionPlugin= +SoundCueCookQualityIndex=-1 + diff --git a/Source/the_twilight_abyss/TurnBaseCombat.cpp b/Source/the_twilight_abyss/TurnBaseCombat.cpp index c28f852..747dc99 100644 --- a/Source/the_twilight_abyss/TurnBaseCombat.cpp +++ b/Source/the_twilight_abyss/TurnBaseCombat.cpp @@ -2,13 +2,14 @@ #include "TurnBaseCombat.h" +#include "Kismet/GameplayStatics.h" void ATurnBaseCombat::BeginPlay() { Super::BeginPlay(); - + TArray AllCharacterActorsInScene; + UGameplayStatics::GetAllActorsOfClassWithTag(GetWorld(), AActor::StaticClass(), FName("Character"), AllCharacterActorsInScene); activeActionPoints = defaultActionPoints; - } void ATurnBaseCombat::useActionPoint()