LEAP Documentation 40220
Documentation for the LEAP project
ObjectPoolInterface.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2021. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UObject/Interface.h"
7#include "ObjectPoolInterface.generated.h"
8
9UINTERFACE(MinimalAPI)
10class UObjectPoolInterface : public UInterface
11{
12 GENERATED_BODY()
13};
14
15class PROJECTX_API IObjectPoolInterface
16{
17 GENERATED_BODY()
18
19public:
20 virtual void OnSpawnedFromObjectPool() {};
21 virtual void OnReleasedToObjectPool() {};
22
23 UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "On Spawned From Object Pool", ScriptName = "OnSpawnedFromObjectPool"))
24 void K2_OnSpawnedFromObjectPool();
25
26 UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "On Released To Object Pool", ScriptName = "OnReleasedToObjectPool"))
27 void K2_OnReleasedToObjectPool();
28};
Definition: ObjectPoolInterface.h:16
virtual void OnSpawnedFromObjectPool()
Definition: ObjectPoolInterface.h:20
virtual void OnReleasedToObjectPool()
Definition: ObjectPoolInterface.h:21
Definition: ObjectPoolInterface.h:11