This commit is contained in:
2024-05-31 15:02:50 +02:00
parent 527af292a5
commit 2ee3c49ff6
50 changed files with 34 additions and 8 deletions

View File

@@ -5,4 +5,7 @@ SimpleMapName=/Game/TopDown/Maps/TopDownExampleMap
bAllowClassAndBlueprintPinMatching=true bAllowClassAndBlueprintPinMatching=true
bReplaceBlueprintWithClass= true bReplaceBlueprintWithClass= true
bDontLoadBlueprintOutsideEditor= true bDontLoadBlueprintOutsideEditor= true
bBlueprintIsNotBlueprintType= true bBlueprintIsNotBlueprintType= true
[/Script/AdvancedPreviewScene.SharedProfiles]

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -30,6 +30,9 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite) UPROPERTY(EditAnywhere, BlueprintReadWrite)
FText Name; FText Name;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool Enabled = true;
UPROPERTY(EditAnywhere, BlueprintReadWrite) UPROPERTY(EditAnywhere, BlueprintReadWrite)
TEnumAsByte<EObjectType> ObjectType = Building; TEnumAsByte<EObjectType> ObjectType = Building;

View File

@@ -12,8 +12,6 @@
#include "EnhancedInputSubsystems.h" #include "EnhancedInputSubsystems.h"
#include "Engine/LocalPlayer.h" #include "Engine/LocalPlayer.h"
DEFINE_LOG_CATEGORY(LogTemplateCharacter);
ATerraformingAnubisPlayerController::ATerraformingAnubisPlayerController() ATerraformingAnubisPlayerController::ATerraformingAnubisPlayerController()
{ {
bShowMouseCursor = true; bShowMouseCursor = true;
@@ -42,10 +40,6 @@ void ATerraformingAnubisPlayerController::SetupInputComponent()
// Setup mouse input events // Setup mouse input events
EnhancedInputComponent->BindAction(ClickAction, ETriggerEvent::Started, this, &ATerraformingAnubisPlayerController::OnClick); EnhancedInputComponent->BindAction(ClickAction, ETriggerEvent::Started, this, &ATerraformingAnubisPlayerController::OnClick);
} }
else
{
UE_LOG(LogTemplateCharacter, Error, TEXT("'%s' Failed to find an Enhanced Input Component! This template is built to use the Enhanced Input system. If you intend to use the legacy system, then you will need to update this C++ file."), *GetNameSafe(this));
}
} }
void ATerraformingAnubisPlayerController::OnClick() void ATerraformingAnubisPlayerController::OnClick()

View File

@@ -12,7 +12,33 @@ class UNiagaraSystem;
class UInputMappingContext; class UInputMappingContext;
class UInputAction; class UInputAction;
DECLARE_LOG_CATEGORY_EXTERN(LogTemplateCharacter, Log, All); UENUM(BlueprintType)
enum EInteractionMode
{
TPP UMETA(DisplayName = "TPP"),
Tactical UMETA(DisplayName = "Tactical")
};
USTRUCT(BlueprintType)
struct FResources
{
GENERATED_BODY()
UPROPERTY(BlueprintReadWrite)
int32 ElectricEnergy;
UPROPERTY(BlueprintReadWrite)
int32 Nanites;
UPROPERTY(BlueprintReadWrite)
int32 Carbon;
UPROPERTY(BlueprintReadWrite)
int32 Titanium;
UPROPERTY(BlueprintReadWrite)
int32 Water;
};
UCLASS() UCLASS()
class ATerraformingAnubisPlayerController : public APlayerController class ATerraformingAnubisPlayerController : public APlayerController