UE4 C++内联函数


#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/SphereComponent.h"
#include "Collecable.generated.h"


UCLASS()
class PACMAN_API ACollecable : public AActor
{
	GENERATED_BODY()

public:
	// Sets default values for this actor's properties
	ACollecable();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:
	// Called every frame
	virtual void Tick(float DeltaTime) override;

	int GetCurrentNum() const;

};

FORCEINLINE int ACollecable::GetCurrentNum() const
{
	return 0;
}

猜你喜欢

转载自blog.csdn.net/m0_37981386/article/details/83623076