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

@@ -6,3 +6,6 @@ bAllowClassAndBlueprintPinMatching=true
bReplaceBlueprintWithClass= true
bDontLoadBlueprintOutsideEditor= 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)
FText Name;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool Enabled = true;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TEnumAsByte<EObjectType> ObjectType = Building;

View File

@@ -12,8 +12,6 @@
#include "EnhancedInputSubsystems.h"
#include "Engine/LocalPlayer.h"
DEFINE_LOG_CATEGORY(LogTemplateCharacter);
ATerraformingAnubisPlayerController::ATerraformingAnubisPlayerController()
{
bShowMouseCursor = true;
@@ -42,10 +40,6 @@ void ATerraformingAnubisPlayerController::SetupInputComponent()
// Setup mouse input events
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()

View File

@@ -12,7 +12,33 @@ class UNiagaraSystem;
class UInputMappingContext;
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()
class ATerraformingAnubisPlayerController : public APlayerController