Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
CorpseMethods.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010 - 2013 Eluna Lua Engine <http://emudevs.com/>
3
* This program is free software licensed under GPL version 3
4
* Please see the included DOCS/LICENSE.TXT for more information
5
*/
6
7
#include "
CorpseMethods.h
"
8
#include "
Includes.h
"
9
10
namespace
LuaCorpse
11
{
12
int
GetOwnerGUID
(lua_State* L,
Corpse
* corpse)
13
{
14
sEluna
->Push(L, corpse->
GetOwnerGUID
());
15
return
1;
16
}
17
18
int
GetGhostTime
(lua_State* L,
Corpse
* corpse)
19
{
20
sEluna
->Push(L, corpse->
GetGhostTime
());
21
return
1;
22
}
23
24
int
GetType
(lua_State* L,
Corpse
* corpse)
25
{
26
sEluna
->Push(L, corpse->
GetType
());
27
return
1;
28
}
29
30
int
ResetGhostTime
(lua_State* L,
Corpse
* corpse)
31
{
32
corpse->
ResetGhostTime
();
33
return
0;
34
}
35
36
int
SaveToDB
(lua_State* L,
Corpse
* corpse)
37
{
38
corpse->
SaveToDB
();
39
return
0;
40
}
41
};
CorpseMethods.h
Includes.h
sEluna
#define sEluna
Definition
LuaEngine.h:710
Corpse
Definition
Corpse.h:37
Corpse::SaveToDB
void SaveToDB()
Definition
Corpse.cpp:78
Corpse::ResetGhostTime
void ResetGhostTime()
Definition
Corpse.h:57
Corpse::GetGhostTime
time_t const & GetGhostTime() const
Definition
Corpse.h:56
Corpse::GetOwnerGUID
uint64 GetOwnerGUID() const
Definition
Corpse.h:54
Corpse::GetType
CorpseType GetType() const
Definition
Corpse.h:58
LuaCorpse
Definition
CorpseMethods.cpp:11
LuaCorpse::GetGhostTime
int GetGhostTime(lua_State *L, Corpse *corpse)
Definition
CorpseMethods.cpp:18
LuaCorpse::GetType
int GetType(lua_State *L, Corpse *corpse)
Definition
CorpseMethods.cpp:24
LuaCorpse::SaveToDB
int SaveToDB(lua_State *L, Corpse *corpse)
Definition
CorpseMethods.cpp:36
LuaCorpse::ResetGhostTime
int ResetGhostTime(lua_State *L, Corpse *corpse)
Definition
CorpseMethods.cpp:30
LuaCorpse::GetOwnerGUID
int GetOwnerGUID(lua_State *L, Corpse *corpse)
Definition
CorpseMethods.cpp:12
src
server
game
LuaEngine
CorpseMethods.cpp
Generated on
for Project SkyFire Core by
1.17.0