Skip to content

Commit

Permalink
Fixing up includes for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mordentral committed Apr 27, 2024
1 parent ea6b403 commit 3aeb312
Show file tree
Hide file tree
Showing 29 changed files with 148 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ UGS_Melee::UGS_Melee(const FObjectInitializer& ObjectInitializer) :
bOnlyPenetrateWithTwoHands = false;
}

void UGS_Melee::SetIsLodged(bool IsLodged, UPrimitiveComponent* LodgeComponent)
{
bIsLodged = IsLodged;
LodgedComponent = LodgeComponent;
}

void UGS_Melee::UpdateDualHandInfo()
{
TArray<FBPGripPair> HoldingControllers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#include "Grippables/GrippablePhysicsReplication.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(GrippablePhysicsReplication)

#include "CoreMinimal.h"
#include "PhysicsEngine\BodyInstance.h"
#include "Components/PrimitiveComponent.h"
#include "Components/SkeletalMeshComponent.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Interface.h"
#include "DrawDebugHelpers.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
#include "Grippables/HandSocketComponent.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(HandSocketComponent)

#include "CoreMinimal.h"
#include "UObject/UObjectIterator.h"
#include "Engine/CollisionProfile.h"
#include "BoneContainer.h"
#include "Animation/AnimSequence.h"
#include "Animation/AnimInstanceProxy.h"
#include "Animation/PoseSnapshot.h"
#include "Animation/AnimData/AnimDataModel.h"
#include "Engine/SkinnedAssetCommon.h"
#include "Engine/SkinnedAsset.h"
//#include "VRExpansionFunctionLibrary.h"
#include "Components/SkeletalMeshComponent.h"
#include "Components/PoseableMeshComponent.h"
Expand Down Expand Up @@ -1010,4 +1015,11 @@ FGameplayTagContainer& UHandSocketComponent::GetGameplayTags()

/////////////////////////////////////////////////
//- End Push networking getter / setter functions
/////////////////////////////////////////////////
/////////////////////////////////////////////////

void UHandSocketAnimInstance::NativeInitializeAnimation()
{
Super::NativeInitializeAnimation();

OwningSocket = Cast<UHandSocketComponent>(GetOwningComponent()->GetAttachParent());
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include UE_INLINE_GENERATED_CPP_BY_NAME(CollisionIgnoreSubsystem)

#include "Components/SkeletalMeshComponent.h"
#include "Engine/World.h"
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
#include "VRGlobalSettings.h"

Expand Down Expand Up @@ -92,6 +93,16 @@ void UCollisionIgnoreSubsystem::ConstructInput()
}
}

void UCollisionIgnoreSubsystem::Deinitialize()
{
Super::Deinitialize();

if (UpdateHandle.IsValid())
{
GetWorld()->GetTimerManager().ClearTimer(UpdateHandle);
}
}


void UCollisionIgnoreSubsystem::UpdateTimer(bool bChangesWereMade)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
#include "Misc/VRAIPerceptionOverrides.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRAIPerceptionOverrides)

#include "EngineDefines.h"
#include "EngineGlobals.h"
#include "CoreMinimal.h"
#include "Engine/Engine.h"
#include "Engine/World.h"
//#include "EngineDefines.h"
//#include "EngineGlobals.h"
#include "CollisionQueryParams.h"
//#include "Engine/Engine.h"
#include "AISystem.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
#include "ReferenceSkeleton.h"
#include "DrawDebugHelpers.h"

#if ENABLE_DRAW_DEBUG
#if UE_ENABLE_DEBUG_DRAWING
#include "Chaos/ImplicitObject.h"
#include "Chaos/TriangleMeshImplicitObject.h"
#include "Chaos/ShapeInstance.h"
#include "Chaos/DebugDrawQueue.h"
#endif

#include "Physics/PhysicsInterfaceCore.h"
Expand Down Expand Up @@ -232,8 +233,8 @@ void UVREPhysicalAnimationComponent::UpdateWeldedBoneDriver(float DeltaTime)
if (FPhysicsInterface::IsValid(ActorHandle) /*&& FPhysicsInterface::IsRigidBody(ActorHandle)*/)
{

#if ENABLE_DRAW_DEBUG
if (bDebugDrawCollision)
#if UE_ENABLE_DEBUG_DRAWING
if (false)//bDebugDrawCollision)
{
Chaos::FDebugDrawQueue::GetInstance().SetConsumerActive(this, true); // Need to deactivate this later as well
Chaos::FDebugDrawQueue::GetInstance().SetMaxCost(20000);
Expand All @@ -252,8 +253,8 @@ void UVREPhysicalAnimationComponent::UpdateWeldedBoneDriver(float DeltaTime)
FTransform GlobalPoseInv = GlobalPose.Inverse();


#if ENABLE_DRAW_DEBUG
if (bDebugDrawCollision)
#if UE_ENABLE_DEBUG_DRAWING
if (false)//bDebugDrawCollision)
{
Chaos::FDebugDrawQueue::GetInstance().SetRegionOfInterest(GlobalPose.GetLocation(), 100.0f);
}
Expand Down Expand Up @@ -306,33 +307,33 @@ void UVREPhysicalAnimationComponent::UpdateWeldedBoneDriver(float DeltaTime)
}
}

#if ENABLE_DRAW_DEBUG
if (bDebugDrawCollision)
#if UE_ENABLE_DEBUG_DRAWING
if (false)//bDebugDrawCollision)
{
const Chaos::FImplicitObject& ShapeImplicit = Shape.GetGeometry();
/*const Chaos::FImplicitObject& ShapeImplicit = Shape.GetGeometry();
Chaos::EImplicitObjectType Type = ShapeImplicit.GetType();
FTransform shapeTransform = FPhysicsInterface::GetLocalTransform(Shape);
FTransform FinalTransform = shapeTransform * GlobalPose;
Chaos::FRigidTransform3 RigTransform(FinalTransform);
Chaos::DebugDraw::DrawShape(RigTransform, &ShapeImplicit, Shape.Shape, FColor::White);
Chaos::DebugDraw::DrawShape(RigTransform, &ShapeImplicit, Shape.Shape, FColor::White);*/
}
#endif
}
});

#if ENABLE_DRAW_DEBUG
if (bDebugDrawCollision)
#if UE_ENABLE_DEBUG_DRAWING
if (false)//bDebugDrawCollision)
{
// Get the latest commands
TArray<Chaos::FLatentDrawCommand> DrawCommands;
/*TArray<Chaos::FLatentDrawCommand> DrawCommands;
Chaos::FDebugDrawQueue::GetInstance().ExtractAllElements(DrawCommands);
if (DrawCommands.Num())
{
DebugDrawMesh(DrawCommands);
}
Chaos::FDebugDrawQueue::GetInstance().SetConsumerActive(this, false); // Need to deactivate this later as well
Chaos::FDebugDrawQueue::GetInstance().SetEnabled(false);
Chaos::FDebugDrawQueue::GetInstance().SetEnabled(false);*/
}
#endif
}
Expand All @@ -342,7 +343,8 @@ void UVREPhysicalAnimationComponent::UpdateWeldedBoneDriver(float DeltaTime)
}
}

#if ENABLE_DRAW_DEBUG
#if UE_ENABLE_DEBUG_DRAWING
/*
void UVREPhysicalAnimationComponent::DebugDrawMesh(const TArray<Chaos::FLatentDrawCommand>& DrawCommands)
{
UWorld* World = this->GetWorld();
Expand Down Expand Up @@ -383,5 +385,5 @@ void UVREPhysicalAnimationComponent::DebugDrawMesh(const TArray<Chaos::FLatentDr
break;
}
}
}
}*/
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRFullScreenUserWidget)

//#include "Components/PostProcessComponent.h"
//#include "Engine/Engine.h"
#include "Engine/Engine.h"
#include "Engine/GameInstance.h"
#include "Engine/GameViewportClient.h"
#include "Engine/TextureRenderTarget2D.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#include "Misc/VRLogComponent.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRLogComponent)

#include "Engine/Engine.h"
#include "GenericPlatform\GenericPlatformInputDeviceMapper.h"
#include "Engine\GameViewportClient.h"
#include "GlobalRenderResources.h"

//#include "Engine/Engine.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "Misc/VRPlayerStart.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRPlayerStart)

#include "CoreMinimal.h"
#include "Engine/World.h"
#include "Components/CapsuleComponent.h"
#include "Components/BillboardComponent.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
#include "Misc/VRRenderTargetManager.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRRenderTargetManager)

#include "Engine/World.h"
#include "GlobalRenderResources.h"
#include "Components/ActorComponent.h"
#include "Kismet/GameplayStatics.h"
#include "GameFramework\Pawn.h"
#include "GameFramework/PlayerState.h"
#include "GameFramework/PlayerController.h"
#include "Engine/TextureRenderTarget2D.h"
#include "Engine/Texture2D.h"
#include "TextureResource.h"
#include "PixelFormat.h"
#include "CanvasTypes.h"
#include "Kismet/KismetMathLibrary.h"
#include "Kismet/KismetRenderingLibrary.h"
Expand Down Expand Up @@ -485,6 +490,14 @@ void ARenderTargetReplicationProxy::SendNextDataBlob()
}
}

void ARenderTargetReplicationProxy::EndPlay(const EEndPlayReason::Type EndPlayReason)
{
if (SendTimer_Handle.IsValid())
GetWorld()->GetTimerManager().ClearTimer(SendTimer_Handle);

Super::EndPlay(EndPlayReason);
}

//=============================================================================
void ARenderTargetReplicationProxy::GetLifetimeReplicatedProps(TArray< class FLifetimeProperty >& OutLifetimeProps) const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "VRBPDatatypes.h"
#include "DefaultMovementSet\LayeredMoves\BasicLayeredMoves.h"
#include "Engine/BlueprintGeneratedClass.h"
#include "Curves\CurveFloat.h" // Delete after tests, only needed for cloning
#include "ReplicatedVRCameraComponent.h"

DEFINE_LOG_CATEGORY(LogVRMoverComponent);
Expand Down Expand Up @@ -161,7 +163,8 @@ void AVRMoverBasePawn::BeginPlay()
if (HasLocalNetOwner())
{
// Add the persistant HMDlayered move addition
CharacterMotionComponent->QueueLayeredMove(TSharedPtr<FLayeredMoveBase>(new FLayeredMove_VRMovement()));
TSharedPtr<FLayeredMove_VRMovement> VRMoveLayer = MakeShared<FLayeredMove_VRMovement>();
CharacterMotionComponent->QueueLayeredMove(VRMoveLayer);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "ParentRelativeAttachmentComponent.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(ParentRelativeAttachmentComponent)

#include "Engine/Engine.h"
#include "VRBaseCharacter.h"
#include "VRCharacter.h"
#include "IXRTrackingSystem.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#include "ReplicatedVRCameraComponent.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(ReplicatedVRCameraComponent)

#include "CoreMinimal.h"
#include "Engine/Engine.h"
#include "Engine/World.h"
#include "Net/UnrealNetwork.h"
#include "VRBaseCharacter.h"
#include "VRCharacter.h"
Expand Down Expand Up @@ -579,4 +582,11 @@ void UReplicatedVRCameraComponent::SetNetUpdateRate(float NewNetUpdateRate)
#if WITH_PUSH_MODEL
MARK_PROPERTY_DIRTY_FROM_NAME(UReplicatedVRCameraComponent, NetUpdateRate, this);
#endif
}

bool UReplicatedVRCameraComponent::IsLocallyControlled() const
{
// I like epics new authority check more than my own
const AActor* MyOwner = GetOwner();
return MyOwner->HasLocalNetOwner();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRAIController)

//#include "VRBPDatatypes.h"
#include "CoreMinimal.h"
#include "Engine/World.h"
#include "VRBaseCharacter.h"
#include "Components/CapsuleComponent.h"
#include "NetworkingDistanceConstants.h" // Needed for the LinOfSightTo function override to work
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#include "VRBPDatatypes.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRBPDatatypes)

#include "CoreMinimal.h"
#include "VRGlobalSettings.h"
#include "Components\PrimitiveComponent.h"
#include "HAL/IConsoleManager.h"
#include "Chaos/ChaosEngineInterface.h"

Expand Down Expand Up @@ -269,4 +271,22 @@ bool FBPAdvancedPhysicsHandleSettings::FillTo(FBPActorPhysicsHandleInformation*
}

return true;
}

AActor* FBPActorGripInformation::GetGrippedActor() const
{
return Cast<AActor>(GrippedObject);
}

UPrimitiveComponent* FBPActorGripInformation::GetGrippedComponent() const
{
return Cast<UPrimitiveComponent>(GrippedObject);
}

bool FBPActorGripInformation::operator==(const UPrimitiveComponent* Other) const
{
if (Other && GrippedObject && GrippedObject == (const UObject*)Other)
return true;

return false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "Navigation/PathFollowingComponent.h"
#include "VRPlayerController.h"
#include "GameFramework/PhysicsVolume.h"
#include "Animation\AnimInstance.h"


DEFINE_LOG_CATEGORY(LogVRBaseCharacterMovement);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRGestureComponent)

#include "VRBaseCharacter.h"
#include "Engine/Engine.h"
#include "Engine/World.h"
#include "Components/SplineMeshComponent.h"
#include "Components/SplineComponent.h"
#include "Components/LineBatchComponent.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "VRPathFollowingComponent.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(VRPathFollowingComponent)

#include "CoreMinimal.h"
#include "Engine/World.h"
//#include "Runtime/Engine/Private/EnginePrivate.h"

//#if ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION >= 13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//#include "Runtime/Engine/Private/EnginePrivate.h"
//#include "WorldCollision.h"
#include "PhysicsPublic.h"
#include "Engine/World.h"
#include "Engine/Engine.h"
#include "Engine/ScopedMovementUpdate.h"
#include "SceneManagement.h"
#include "PrimitiveSceneProxy.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,8 @@ class VREXPANSIONPLUGIN_API UGS_Melee : public UGS_Default
virtual void OnLodgeHitCallback(AActor* SelfActor, AActor* OtherActor, FVector NormalImpulse, const FHitResult& Hit);

UFUNCTION(BlueprintCallable, Category = "Weapon Settings")
void SetIsLodged(bool IsLodged, UPrimitiveComponent * LodgeComponent)
{
bIsLodged = IsLodged;
LodgedComponent = LodgeComponent;
}
void SetIsLodged(bool IsLodged, UPrimitiveComponent* LodgeComponent);


bool bIsLodged;
TWeakObjectPtr<UPrimitiveComponent> LodgedComponent;
Expand Down
Loading

0 comments on commit 3aeb312

Please sign in to comment.