Remove functions not to be used or cant be used and fix TC build

This commit is contained in:
Rochet2
2015-08-26 17:05:34 +03:00
parent 2379c00711
commit 83e001b2ac
3 changed files with 1 additions and 54 deletions

View File

@@ -577,7 +577,7 @@ namespace LuaPlayer
*/
int IsRested(Eluna* /*E*/, lua_State* L, Player* player)
{
Eluna::Push(L, player->isRested());
Eluna::Push(L, player->GetRestBonus() > 0.0f);
return 1;
}
@@ -875,17 +875,6 @@ namespace LuaPlayer
return 1;
}
/**
* Returns the [Player]s current accumulated rest time
*
* @return uint32 restTime
*/
int GetRestTime(Eluna* /*E*/, lua_State* L, Player* player)
{
Eluna::Push(L, player->GetRestTime());
return 1;
}
int GetXPRestBonus(Eluna* /*E*/, lua_State* L, Player* player)
{
uint32 xp = Eluna::CHECKVAL<uint32>(L, 2);
@@ -1178,17 +1167,6 @@ namespace LuaPlayer
return 1;
}
/**
* Returns the [Player]s resting type
*
* @return [RestType] restType
*/
int GetRestType(Eluna* /*E*/, lua_State* L, Player* player)
{
Eluna::Push(L, player->GetRestType());
return 1;
}
/**
* Returns the [Player]s current resting bonus
*
@@ -1557,19 +1535,6 @@ namespace LuaPlayer
return 0;
}
/**
* Sets the [Player]s rested time to the time specified
*
* @param uint32 restTime
*/
int SetRestTime(Eluna* /*E*/, lua_State* L, Player* player)
{
uint32 value = Eluna::CHECKVAL<uint32>(L, 2);
player->SetRestTime(value);
return 0;
}
/**
* Sets the [Player]s intoxication level to the level specified
*
@@ -1666,19 +1631,6 @@ namespace LuaPlayer
return 0;
}
/**
* Sets the [Player]s rest type to the type specified
*
* @param int restType
*/
int SetRestType(Eluna* /*E*/, lua_State* L, Player* player)
{
int type = Eluna::CHECKVAL<int>(L, 2);
player->SetRestType((RestType)type);
return 0;
}
/**
* Sets the [Player]s rest bonus to the amount specified
*