-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Add] Hazards inheritance + Reparent Campfire blueprint with the new …
…scripts
- Loading branch information
Showing
6 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+697 Bytes
(100%)
GameJamPlus2024/Content/Hazards/Fire/Fire3D/Blueprints/Blueprint_Effect_Fire.uasset
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
GameJamPlus2024/Source/GameJamPlus2024/Private/Hazards/HazardBase.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
|
||
#include "Hazards/HazardBase.h" | ||
|
||
// Sets default values | ||
AHazardBase::AHazardBase() | ||
{ | ||
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. | ||
PrimaryActorTick.bCanEverTick = true; | ||
CollisionBox = CreateDefaultSubobject<UBoxComponent>(TEXT("CollisionBox")); | ||
} | ||
|
||
// Called when the game starts or when spawned | ||
void AHazardBase::BeginPlay() | ||
{ | ||
Super::BeginPlay(); | ||
|
||
} | ||
|
||
// Called every frame | ||
void AHazardBase::Tick(float DeltaTime) | ||
{ | ||
Super::Tick(DeltaTime); | ||
|
||
} | ||
|
5 changes: 5 additions & 0 deletions
5
GameJamPlus2024/Source/GameJamPlus2024/Private/Hazards/HazardCampfire.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
|
||
#include "Hazards/HazardCampfire.h" | ||
|
31 changes: 31 additions & 0 deletions
31
GameJamPlus2024/Source/GameJamPlus2024/Public/Hazards/HazardBase.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "Components/BoxComponent.h" | ||
#include "GameFramework/Actor.h" | ||
#include "HazardBase.generated.h" | ||
|
||
UCLASS() | ||
class GAMEJAMPLUS2024_API AHazardBase : public AActor | ||
{ | ||
GENERATED_BODY() | ||
|
||
public: | ||
// Sets default values for this actor's properties | ||
AHazardBase(); | ||
|
||
protected: | ||
// Called when the game starts or when spawned | ||
virtual void BeginPlay() override; | ||
|
||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Upgrades", meta = (AllowPrivate)) | ||
UBoxComponent* CollisionBox; | ||
|
||
|
||
public: | ||
// Called every frame | ||
virtual void Tick(float DeltaTime) override; | ||
|
||
}; |
17 changes: 17 additions & 0 deletions
17
GameJamPlus2024/Source/GameJamPlus2024/Public/Hazards/HazardCampfire.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "Hazards/HazardBase.h" | ||
#include "HazardCampfire.generated.h" | ||
|
||
/** | ||
* | ||
*/ | ||
UCLASS() | ||
class GAMEJAMPLUS2024_API AHazardCampfire : public AHazardBase | ||
{ | ||
GENERATED_BODY() | ||
|
||
}; |