You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
awesome_game/Source/TurnBasedTutorial/BattleMode/Trooper/Explosion.h

37 lines
825 B

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
2 years ago
#include "Explosion.generated.h"
UCLASS()
2 years ago
class TURNBASEDTUTORIAL_API AExplosion : public AActor {
GENERATED_BODY()
public:
2 years ago
AExplosion();
void Initialize(float damage,
float splashRadius,
uint8 playerIndex);
protected:
virtual void BeginPlay() override;
virtual void NotifyActorBeginOverlap(AActor *OtherActor) override;
UPROPERTY(Replicated)
float Damage;
UPROPERTY(Replicated)
int8 PlayerIndex = -1;
2 years ago
// UPROPERTY(EditAnywhere, Replicated)
// USphereComponent *CollisionComponent;
UPROPERTY(EditAnywhere, Replicated)
UParticleSystemComponent *ParticleSystemComponent;
};