Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
IFilter.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#
pragma
once
4
5
#
include
"CoreTypes.h"
6
#
include
"Delegates/Delegate.h"
7
8
/**
9
* A generic interface that represents a Filter of ItemType.
10
*/
11
template
<
typename
TItemType >
12
class
IFilter
13
{
14
public
:
15
typedef
TItemType
ItemType
;
16
17
virtual
~
IFilter
(){ }
18
19
/** Returns whether the specified Item passes the Filter's restrictions */
20
virtual
bool
PassesFilter
( TItemType InItem )
const
= 0;
21
22
/** Broadcasts anytime the restrictions of the Filter changes */
23
DECLARE_EVENT
(
IFilter
<TItemType>, FChangedEvent );
24
virtual
FChangedEvent&
OnChanged
() = 0;
25
};
DECLARE_EVENT
#define DECLARE_EVENT(OwningType, EventName)
Definition
DelegateCombinations.h:32
IFilter
Definition
IFilter.h:13
IFilter::OnChanged
virtual FChangedEvent & OnChanged()=0
IFilter::~IFilter
virtual ~IFilter()
Definition
IFilter.h:17
IFilter::PassesFilter
virtual bool PassesFilter(TItemType InItem) const =0
IFilter::ItemType
TItemType ItemType
Definition
IFilter.h:15
Downloads
ArkServerAPI_NEW
ASA
AsaApi
AsaApi
Core
Public
API
UE
Misc
IFilter.h
Generated by
1.10.0