Files
Remake/Source/CodRemake/Weapon/BaseWeapon.h
Nalobin Egor 91fb0eb3da add code
2023-11-19 19:30:07 +11:00

36 lines
784 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "BaseWeapon.generated.h"
UCLASS(Abstract)
class CODREMAKE_API ABaseWeapon : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ABaseWeapon();
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
float Damage;
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
// virtual void Tick(float DeltaTime) override;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
TObjectPtr<USceneComponent> Root;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
TObjectPtr<USkeletalMeshComponent> WeaponMeshComponent;
};