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.
37 lines
825 B
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"
|
|
#include "Explosion.generated.h"
|
|
|
|
UCLASS()
|
|
class TURNBASEDTUTORIAL_API AExplosion : public AActor {
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
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;
|
|
|
|
// UPROPERTY(EditAnywhere, Replicated)
|
|
// USphereComponent *CollisionComponent;
|
|
|
|
UPROPERTY(EditAnywhere, Replicated)
|
|
UParticleSystemComponent *ParticleSystemComponent;
|
|
};
|