OpenBarnyard
 
Loading...
Searching...
No Matches
AGameStateControllerEvent.h
Go to the documentation of this file.
1#pragma once
2#include <Toshi/Typedefs.h>
4
5class AGameState;
6
7class AGameStateControllerEvent : public Toshi::TGlobalEvent<AGameStateControllerEvent>
8{
9public:
10 using Type = TUINT32;
18
19public:
20 constexpr AGameStateControllerEvent( AGameState* a_pGameState, Type a_eType )
21 : m_pGameState( a_pGameState ), m_eType( a_eType ) {}
22
23 AGameState* GetGameState() const { return m_pGameState; }
24 Type GetEventType() const { return m_eType; }
25
26private:
27 AGameState* m_pGameState;
28 Type m_eType;
29};
uint32_t TUINT32
Definition Typedefs.h:13
constexpr AGameStateControllerEvent(AGameState *a_pGameState, Type a_eType)