Truncating history

This commit is contained in:
Foereaper
2014-06-29 21:27:59 +02:00
commit a04de5b194
28 changed files with 14508 additions and 0 deletions

58
CorpseMethods.h Normal file
View File

@@ -0,0 +1,58 @@
/*
* Copyright (C) 2010 - 2014 Eluna Lua Engine <http://emudevs.com/>
* This program is free software licensed under GPL version 3
* Please see the included DOCS/LICENSE.md for more information
*/
#ifndef CORPSEMETHODS_H
#define CORPSEMETHODS_H
namespace LuaCorpse
{
// GetOwnerGUID()
int GetOwnerGUID(lua_State* L, Corpse* corpse)
{
#ifdef MANGOS
sEluna->Push(L, corpse->GetOwnerGuid());
#else
sEluna->Push(L, corpse->GetOwnerGUID());
#endif
return 1;
}
// GetGhostTime()
int GetGhostTime(lua_State* L, Corpse* corpse)
{
sEluna->Push(L, uint32(corpse->GetGhostTime()));
return 1;
}
// GetType()
int GetType(lua_State* L, Corpse* corpse)
{
sEluna->Push(L, corpse->GetType());
return 1;
}
// ResetGhostTime()
int ResetGhostTime(lua_State* L, Corpse* corpse)
{
corpse->ResetGhostTime();
return 0;
}
// SaveToDB()
int SaveToDB(lua_State* L, Corpse* corpse)
{
corpse->SaveToDB();
return 0;
}
// DeleteBonesFromWorld()
int DeleteBonesFromWorld(lua_State* L, Corpse* corpse)
{
corpse->DeleteBonesFromWorld();
return 0;
}
};
#endif