-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
2,250 additions
and
148 deletions.
There are no files selected for viewing
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
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
Binary file modified
BIN
-3.13 KB
(97%)
Source/RTSProject/Content/Buildings/Spacedock/BP_Spacedock.uasset
Binary file not shown.
Binary file modified
BIN
-3.68 KB
(97%)
Source/RTSProject/Content/Buildings/Starbase/BP_Starbase.uasset
Binary file not shown.
Binary file modified
BIN
+71 Bytes
(100%)
Source/RTSProject/Content/Gameplay/BP_RTSPlayerAIController.uasset
Binary file not shown.
Binary file modified
BIN
-1.13 KB
(95%)
Source/RTSProject/Content/Maps/AutomatedTests/BP_TestGameMode.uasset
Binary file not shown.
Binary file added
BIN
+89 KB
...oject/Content/Maps/AutomatedTests/TestAreaOfEffectDamage/BP_TestAreaOfEffectDamage.uasset
Binary file not shown.
Binary file added
BIN
+123 KB
...t/Content/Maps/AutomatedTests/TestAreaOfEffectDamage/BP_TestAreaOfEffectDamage_CMV.uasset
Binary file not shown.
Binary file added
BIN
+90 KB
...aps/AutomatedTests/TestAreaOfEffectDamage/BP_TestAreaOfEffectDamage_CMV_Projectile.uasset
Binary file not shown.
Binary file added
BIN
+82.4 KB
...TSProject/Content/Maps/AutomatedTests/TestAreaOfEffectDamage/TEST-AreaOfEffectDamage.umap
Binary file not shown.
Binary file added
BIN
+83.2 KB
Source/RTSProject/Content/Maps/AutomatedTests/TestBounty/BP_TestBounty.uasset
Binary file not shown.
Binary file added
BIN
+118 KB
Source/RTSProject/Content/Maps/AutomatedTests/TestBounty/BP_TestBounty_CMV.uasset
Binary file not shown.
Binary file added
BIN
+77.6 KB
Source/RTSProject/Content/Maps/AutomatedTests/TestBounty/TEST-Bounty.umap
Binary file not shown.
Binary file added
BIN
+93.9 KB
...oject/Content/Maps/AutomatedTests/TestHealthRegeneration/BP_TestHealthRegeneration.uasset
Binary file not shown.
Binary file added
BIN
+123 KB
...t/Content/Maps/AutomatedTests/TestHealthRegeneration/BP_TestHealthRegeneration_CMV.uasset
Binary file not shown.
Binary file added
BIN
+77.2 KB
...TSProject/Content/Maps/AutomatedTests/TestHealthRegeneration/TEST-HealthRegeneration.umap
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-2.41 KB
(98%)
Source/RTSProject/Plugins/RealTimeStrategy/Content/Construction/BP_RTSBuildingCursor.uasset
Binary file not shown.
Binary file added
BIN
+27 KB
Source/RTSProject/Plugins/RealTimeStrategy/Content/Construction/BP_RTSRangeIndictator.uasset
Binary file not shown.
Binary file added
BIN
+86 KB
Source/RTSProject/Plugins/RealTimeStrategy/Content/Construction/M_RTSRangeIndicator.uasset
Binary file not shown.
Binary file modified
BIN
+469 Bytes
(130%)
Source/RTSProject/Plugins/RealTimeStrategy/Content/Data/DT_RTSGameplayTags.uasset
Binary file not shown.
Binary file modified
BIN
+356 Bytes
(100%)
Source/RTSProject/Plugins/RealTimeStrategy/Content/Minimap/WBP_RTSMinimapWidget.uasset
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
Source/RTSProject/Plugins/RealTimeStrategy/RealTimeStrategy.uplugin
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
19 changes: 19 additions & 0 deletions
19
...oject/Plugins/RealTimeStrategy/Source/RealTimeStrategy/Classes/Combat/RTSActorDeathType.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,19 @@ | ||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
|
||
#include "RTSActorDeathType.generated.h" | ||
|
||
/** How to handle depleted health. */ | ||
UENUM(BlueprintType) | ||
enum class ERTSActorDeathType : uint8 | ||
{ | ||
/** Do nothing. */ | ||
DEATH_DoNothing, | ||
|
||
/** Stop gameplay for the actor, removing most of its components. */ | ||
DEATH_StopGameplay, | ||
|
||
/** Destroy the actor. */ | ||
DEATH_Destroy | ||
}; |
42 changes: 42 additions & 0 deletions
42
...ject/Plugins/RealTimeStrategy/Source/RealTimeStrategy/Classes/Combat/RTSBountyComponent.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,42 @@ | ||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
|
||
#include "Components/ActorComponent.h" | ||
|
||
#include "Economy/RTSResourceType.h" | ||
|
||
#include "RTSBountyComponent.generated.h" | ||
|
||
|
||
class AController; | ||
|
||
|
||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams(FRTSBountyComponentBountyCollectedSignature, AActor*, Actor, | ||
AController*, Player, TSubclassOf<URTSResourceType>, ResourceType, float, ResourceAmount); | ||
|
||
|
||
/** Grants players resources when killing the actor. */ | ||
UCLASS(meta = (BlueprintSpawnableComponent)) | ||
class REALTIMESTRATEGY_API URTSBountyComponent : public UActorComponent | ||
{ | ||
GENERATED_BODY() | ||
|
||
public: | ||
/* Event when the bounty was collected. */ | ||
UPROPERTY(BlueprintAssignable, Category = "RTS") | ||
FRTSBountyComponentBountyCollectedSignature OnBountyCollected; | ||
|
||
protected: | ||
virtual void BeginPlay() override; | ||
|
||
private: | ||
/** Resources to grant when killing the actor. */ | ||
UPROPERTY(EditDefaultsOnly, Category = "RTS") | ||
TMap<TSubclassOf<URTSResourceType>, float> Bounties; | ||
|
||
UFUNCTION() | ||
void OnKilled(AActor* Actor, AController* PreviousOwner, AActor* DamageCauser); | ||
|
||
bool GivesBounty(AController* Player); | ||
}; |
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
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
Oops, something went wrong.