Project SkyFire Core
SkyFire 5.4.8 server core API documentation
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
10namespace 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};
#define sEluna
Definition LuaEngine.h:710
void SaveToDB()
Definition Corpse.cpp:78
void ResetGhostTime()
Definition Corpse.h:57
time_t const & GetGhostTime() const
Definition Corpse.h:56
uint64 GetOwnerGUID() const
Definition Corpse.h:54
CorpseType GetType() const
Definition Corpse.h:58
int GetGhostTime(lua_State *L, Corpse *corpse)
int GetType(lua_State *L, Corpse *corpse)
int SaveToDB(lua_State *L, Corpse *corpse)
int ResetGhostTime(lua_State *L, Corpse *corpse)
int GetOwnerGUID(lua_State *L, Corpse *corpse)