Code fixes for packaging
This commit is contained in:
parent
77b55963fa
commit
cba7ff8a6f
@ -62,7 +62,7 @@ InternationalizationPreset=English
|
|||||||
-CulturesToStage=en
|
-CulturesToStage=en
|
||||||
+CulturesToStage=en
|
+CulturesToStage=en
|
||||||
LocalizationTargetCatchAllChunkId=0
|
LocalizationTargetCatchAllChunkId=0
|
||||||
bCookAll=True
|
bCookAll=False
|
||||||
bCookMapsOnly=False
|
bCookMapsOnly=False
|
||||||
bSkipEditorContent=True
|
bSkipEditorContent=True
|
||||||
bSkipMovies=False
|
bSkipMovies=False
|
||||||
|
BIN
Content/Blueprints/Minigames/RythmClick/UI_Minigame_RythmClickCanvas.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Minigames/RythmClick/UI_Minigame_RythmClickCanvas.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/Test/Actors/DialogueTest/BP_Test_DialogueSecondary.uasset
(Stored with Git LFS)
BIN
Content/Levels/Test/Actors/DialogueTest/BP_Test_DialogueSecondary.uasset
(Stored with Git LFS)
Binary file not shown.
Binary file not shown.
@ -19,11 +19,10 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void OnRegister() override;
|
virtual void OnRegister() override;
|
||||||
|
|
||||||
void Scan();
|
|
||||||
virtual void Scan_Implementation() override;
|
virtual void Scan_Implementation() override;
|
||||||
|
|
||||||
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
|
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
|
||||||
void NewSeenInteractable(class AInteractable* interactable);
|
LOST_EDGE_API void NewSeenInteractable(class AInteractable* interactable);
|
||||||
virtual void NewSeenInteractable_Implementation(class AInteractable* interactable);
|
virtual void NewSeenInteractable_Implementation(class AInteractable* interactable);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -49,7 +49,7 @@ void UInteractableActivator::TickComponent(float DeltaTime, enum ELevelTick Tick
|
|||||||
case ELevelTick::LEVELTICK_ViewportsOnly:
|
case ELevelTick::LEVELTICK_ViewportsOnly:
|
||||||
case ELevelTick::LEVELTICK_All:
|
case ELevelTick::LEVELTICK_All:
|
||||||
USceneComponent::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
USceneComponent::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
||||||
Scan_Implementation();
|
Scan();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -21,13 +21,17 @@ public:
|
|||||||
UInteractableActivator(const FObjectInitializer& ObjectInitializer);
|
UInteractableActivator(const FObjectInitializer& ObjectInitializer);
|
||||||
virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
|
||||||
|
|
||||||
|
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
|
||||||
|
LOST_EDGE_API void Rescan();
|
||||||
|
virtual void Rescan_Implementation() {}
|
||||||
|
|
||||||
FInteractableActivated interactableActivatedDelegate;
|
FInteractableActivated interactableActivatedDelegate;
|
||||||
FInteractableActivated interactableDeactivatedDelegate;
|
FInteractableActivated interactableDeactivatedDelegate;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
|
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
|
||||||
inline void Scan();
|
LOST_EDGE_API void Scan();
|
||||||
inline virtual void Scan_Implementation() PURE_VIRTUAL(UInteractableActivator::Scan_Implementation, );
|
virtual void Scan_Implementation() PURE_VIRTUAL(UInteractableActivator::Scan_Implementation, );
|
||||||
|
|
||||||
UPROPERTY(EditDefaultsOnly)
|
UPROPERTY(EditDefaultsOnly)
|
||||||
EActivatorType activatorType;
|
EActivatorType activatorType;
|
||||||
|
@ -12,6 +12,11 @@ URaycastInteractableActivator::URaycastInteractableActivator(const FObjectInitia
|
|||||||
activatorType = EActivatorType::Use;
|
activatorType = EActivatorType::Use;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void URaycastInteractableActivator::Rescan_Implementation()
|
||||||
|
{
|
||||||
|
_last = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void URaycastInteractableActivator::Scan_Implementation()
|
void URaycastInteractableActivator::Scan_Implementation()
|
||||||
{
|
{
|
||||||
FHitResult result{};
|
FHitResult result{};
|
||||||
@ -48,7 +53,7 @@ void URaycastInteractableActivator::Scan_Implementation()
|
|||||||
#ifdef INTERACTABLE_ACTIVATOR_DEBUG
|
#ifdef INTERACTABLE_ACTIVATOR_DEBUG
|
||||||
DrawDebugLine(GetWorld(), startLocation, endLocation, FColor::Green, false, PrimaryComponentTick.TickInterval, 0, 0.1f);
|
DrawDebugLine(GetWorld(), startLocation, endLocation, FColor::Green, false, PrimaryComponentTick.TickInterval, 0, 0.1f);
|
||||||
#endif // INTERACTABLE_ACTIVATOR_DEBUG
|
#endif // INTERACTABLE_ACTIVATOR_DEBUG
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(_activated)
|
if(_activated)
|
||||||
@ -64,5 +69,5 @@ void URaycastInteractableActivator::Scan_Implementation()
|
|||||||
#ifdef INTERACTABLE_ACTIVATOR_DEBUG
|
#ifdef INTERACTABLE_ACTIVATOR_DEBUG
|
||||||
DrawDebugLine(GetWorld(), startLocation, endLocation, FColor::Red, false, PrimaryComponentTick.TickInterval, 10, 0.1f);
|
DrawDebugLine(GetWorld(), startLocation, endLocation, FColor::Red, false, PrimaryComponentTick.TickInterval, 10, 0.1f);
|
||||||
#endif // INTERACTABLE_ACTIVATOR_DEBUG
|
#endif // INTERACTABLE_ACTIVATOR_DEBUG
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,8 +15,9 @@ class URaycastInteractableActivator : public UInteractableActivator
|
|||||||
public:
|
public:
|
||||||
URaycastInteractableActivator(const FObjectInitializer& ObjectInitializer);
|
URaycastInteractableActivator(const FObjectInitializer& ObjectInitializer);
|
||||||
|
|
||||||
|
virtual void Rescan_Implementation() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Scan();
|
|
||||||
virtual void Scan_Implementation() override;
|
virtual void Scan_Implementation() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include "Kismet/GameplayStatics.h"
|
#include "Kismet/GameplayStatics.h"
|
||||||
#include "Kismet/KismetMathLibrary.h"
|
#include "Kismet/KismetMathLibrary.h"
|
||||||
|
|
||||||
|
|
||||||
#include "CustomGameInstanceBase.h"
|
#include "CustomGameInstanceBase.h"
|
||||||
#include "CustomGameUserSettings.h"
|
#include "CustomGameUserSettings.h"
|
||||||
#include "Interactable/Activators/InteractableActivator.h"
|
#include "Interactable/Activators/InteractableActivator.h"
|
||||||
@ -154,6 +153,9 @@ void APlayerBase::UnlockPlayer(FPlayerLock lock)
|
|||||||
interactionLocked -= lock.interaction;
|
interactionLocked -= lock.interaction;
|
||||||
cameraLocked -= lock.camera;
|
cameraLocked -= lock.camera;
|
||||||
inventoryLocked -= lock.inventory;
|
inventoryLocked -= lock.inventory;
|
||||||
|
|
||||||
|
if(!interactionLocked)
|
||||||
|
ResetIntractions();
|
||||||
}
|
}
|
||||||
|
|
||||||
void APlayerBase::FlyMode(bool on)
|
void APlayerBase::FlyMode(bool on)
|
||||||
@ -164,6 +166,8 @@ void APlayerBase::FlyMode(bool on)
|
|||||||
void APlayerBase::ResetIntractions()
|
void APlayerBase::ResetIntractions()
|
||||||
{
|
{
|
||||||
InteractableDeactivated(lastInteractable, static_cast<EActivatorType>(0xFF));
|
InteractableDeactivated(lastInteractable, static_cast<EActivatorType>(0xFF));
|
||||||
|
for(auto activator : interactableActivators)
|
||||||
|
activator->Rescan();
|
||||||
}
|
}
|
||||||
|
|
||||||
FVector APlayerBase::GetCameraDirection()
|
FVector APlayerBase::GetCameraDirection()
|
||||||
@ -267,6 +271,7 @@ void APlayerBase::LoadInteractablesActivators()
|
|||||||
component->interactableDeactivatedDelegate.BindUObject(this, &APlayerBase::InteractableDeactivated);
|
component->interactableDeactivatedDelegate.BindUObject(this, &APlayerBase::InteractableDeactivated);
|
||||||
component->SetupAttachment(camera);
|
component->SetupAttachment(camera);
|
||||||
component->RegisterComponent();
|
component->RegisterComponent();
|
||||||
|
interactableActivators.Add(component);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -290,9 +295,6 @@ void APlayerBase::InteractableDeactivated(AInteractable* interactable, EActivato
|
|||||||
if(!interactable)
|
if(!interactable)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(interactionLocked)
|
|
||||||
return;
|
|
||||||
|
|
||||||
interactable->_Deactivate(type);
|
interactable->_Deactivate(type);
|
||||||
|
|
||||||
if(interactable->GetActivatedFlags() == 0)
|
if(interactable->GetActivatedFlags() == 0)
|
||||||
|
@ -136,6 +136,7 @@ protected:
|
|||||||
bool bIsMoving = false;
|
bool bIsMoving = false;
|
||||||
|
|
||||||
class AInteractable* lastInteractable = nullptr;
|
class AInteractable* lastInteractable = nullptr;
|
||||||
|
TArray<class UInteractableActivator*> interactableActivators;
|
||||||
UPROPERTY()
|
UPROPERTY()
|
||||||
class USpringArmComponent* itemDropSpringArm;
|
class USpringArmComponent* itemDropSpringArm;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user