diff --git a/CorpseMethods.h b/CorpseMethods.h index 615f4b5..db1ff37 100644 --- a/CorpseMethods.h +++ b/CorpseMethods.h @@ -9,6 +9,11 @@ namespace LuaCorpse { + /** + * Returns the &Corpse Owner GUID. + * + * @return uint64 ownerGUID + */ int GetOwnerGUID(lua_State* L, Corpse* corpse) { #ifndef TRINITY @@ -19,30 +24,61 @@ namespace LuaCorpse return 1; } + /** + * Returns the ghost time of a &Corpse. + * + * @return time_t ghostTime + */ int GetGhostTime(lua_State* L, Corpse* corpse) { Eluna::Push(L, uint32(corpse->GetGhostTime())); return 1; } + /** + * Returns the CorpseType of a &Corpse. + * + *
+ * enum CorpseType
+ * {
+ * CORPSE_BONES = 0,
+ * CORPSE_RESURRECTABLE_PVE = 1,
+ * CORPSE_RESURRECTABLE_PVP = 2
+ * };
+ *
+ *
+ * @return CorpseType corpseType
+ */
int GetType(lua_State* L, Corpse* corpse)
{
Eluna::Push(L, corpse->GetType());
return 1;
}
+ /**
+ * Resets the &Corpse ghost time.
+ *
+ */
int ResetGhostTime(lua_State* /*L*/, Corpse* corpse)
{
corpse->ResetGhostTime();
return 0;
}
+ /**
+ * Saves the &Corpse to the database.
+ *
+ */
int SaveToDB(lua_State* /*L*/, Corpse* corpse)
{
corpse->SaveToDB();
return 0;
}
+ /**
+ * Deletes the &Corpse from the world.
+ *
+ */
int DeleteBonesFromWorld(lua_State* /*L*/, Corpse* corpse)
{
corpse->DeleteBonesFromWorld();
diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp
index fd36979..6eb6803 100644
--- a/LuaFunctions.cpp
+++ b/LuaFunctions.cpp
@@ -1159,12 +1159,12 @@ ElunaRegister