mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
Add EnterLayerEvent<N> as default template param to the filter
This commit is contained in:
parent
9cd0327766
commit
17eb0e5aa0
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ namespace geode {
|
||||||
template<class T, class N>
|
template<class T, class N>
|
||||||
concept InheritsEnterLayer = std::is_base_of_v<EnterLayerEvent<N>, T>;
|
concept InheritsEnterLayer = std::is_base_of_v<EnterLayerEvent<N>, T>;
|
||||||
|
|
||||||
template<class N, InheritsEnterLayer<N> T>
|
template<class N, InheritsEnterLayer<N> T = EnterLayerEvent<N>>
|
||||||
class EnterLayerFilter : public EventFilter<EnterLayerEvent<N>> {
|
class EnterLayerFilter : public EventFilter<EnterLayerEvent<N>> {
|
||||||
public:
|
public:
|
||||||
using Callback = void(T*);
|
using Callback = void(T*);
|
||||||
|
|
Loading…
Reference in a new issue