FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NoahGameFrame/NFComm/NFPluginModule/NFILuaScriptModule.h at develop · ifivebig/NoahGameFrame · GitHub
ifivebig
/
NoahGameFrame
Public
forked from
ketoo/NoahGameFrame
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
NoahGameFrame
/
NFComm
/
NFPluginModule
/
NFILuaScriptModule.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
51 lines (40 loc) · 2.61 KB
Breadcrumbs
NoahGameFrame
/
NFComm
/
NFPluginModule
/
NFILuaScriptModule.h
Copy path
File metadata and controls
51 lines (40 loc) · 2.61 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
44
45
46
47
48
49
50
51
//
-------------------------------------------------------------------------
//
@FileName £º NFILuaScriptModule.h
//
@Author £º LvSheng.Huang
//
@Date £º 2013-07-08
//
@Module £º NFILuaScriptModule
//
//
-------------------------------------------------------------------------
#
ifndef
_NFI_LUA_SCRIPT_MODULE_H_
#
define
_NFI_LUA_SCRIPT_MODULE_H_
#
include
"
NFIScriptModule.h
"
class
NFILuaScriptModule
: public NFIScriptModule
{
public:
};
static
bool
KernelModule_AddPropertyCallBack
(
NFINT64
kernelAddress,
const
NFIDENTID
& self,
const
std::string& strPropertyName,
const
std::string& strComponentName,
const
std::string& strFunction)
{
NFIKernelModule* pKernelModule = (NFIKernelModule*)kernelAddress;
NFILuaScriptModule* pLuaScriptModule =
dynamic_cast
<NFILuaScriptModule*>(pKernelModule->
GetPluginManager
()->
FindModule
(
"
NFCLuaScriptModule
"
));
return
pLuaScriptModule->
AddPropertyCallBack
(self, strPropertyName, strComponentName, strFunction);
}
static
bool
KernelModule_AddRecordCallBack
(
NFINT64
kernelAddress,
const
NFIDENTID
& self,
const
std::string& strRecordName,
const
std::string& strComponentName,
const
std::string& strFunction)
{
NFIKernelModule* pKernelModule = (NFIKernelModule*)kernelAddress;
NFILuaScriptModule* pLuaScriptModule =
dynamic_cast
<NFILuaScriptModule*>(pKernelModule->
GetPluginManager
()->
FindModule
(
"
NFCLuaScriptModule
"
));
return
pLuaScriptModule->
AddRecordCallBack
(self, strRecordName, strComponentName, strFunction);
}
static
bool
KernelModule_AddEventCallBack
(
NFINT64
kernelAddress,
const
NFIDENTID
& self,
const
int
nEventID,
const
std::string& strComponentName,
const
std::string& strFunction)
{
NFIKernelModule* pKernelModule = (NFIKernelModule*)kernelAddress;
NFILuaScriptModule* pLuaScriptModule =
dynamic_cast
<NFILuaScriptModule*>(pKernelModule->
GetPluginManager
()->
FindModule
(
"
NFCLuaScriptModule
"
));
return
pLuaScriptModule->
AddEventCallBack
(self, nEventID, strComponentName, strFunction);
}
static
bool
KernelModule_AddHeartBeat
(
NFINT64
kernelAddress,
const
NFIDENTID
& self,
const
std::string& strHeartBeatName,
const
std::string& strComponentName,
const
std::string& strFunction,
const
float
fTime
,
const
int
nCount)
{
NFIKernelModule* pKernelModule = (NFIKernelModule*)kernelAddress;
NFILuaScriptModule* pLuaScriptModule =
dynamic_cast
<NFILuaScriptModule*>(pKernelModule->
GetPluginManager
()->
FindModule
(
"
NFCLuaScriptModule
"
));
return
pLuaScriptModule->
AddHeartBeatCallBack
(self, strHeartBeatName, strComponentName, strFunction,
fTime
, nCount);
}
#
endif
Back
|
FazBrowse Home
|
New Git URL