forked from citizenfx/fivem
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathComponent.cpp
More file actions
43 lines (33 loc) · 702 Bytes
/
Component.cpp
File metadata and controls
43 lines (33 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#include "StdInc.h"
#include "ComponentLoader.h"
class ComponentInstance : public Component
{
public:
virtual bool Initialize();
virtual bool DoGameLoad(void* module);
virtual bool Shutdown();
};
bool ComponentInstance::Initialize()
{
InitFunctionBase::RunAll();
return true;
}
bool ComponentInstance::DoGameLoad(void* module)
{
HookFunction::RunAll();
return true;
}
bool ComponentInstance::Shutdown()
{
return true;
}
extern "C" DLL_EXPORT Component* CreateComponent()
{
return new ComponentInstance();
}