summaryrefslogtreecommitdiffstats
path: root/source/squirrelbindings/SquirrelBindings.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-17 14:02:03 +0200
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-17 14:02:03 +0200
commitf473f13585e1bc901bfeb05cd5a9bb35489595da (patch)
tree48d9f165c1c154ae5baefe9712b990f837edfd37 /source/squirrelbindings/SquirrelBindings.cpp
parentFixed compilation on OS X and maybe *nix as well (diff)
downloadcuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar
cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.gz
cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.bz2
cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.lz
cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.xz
cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.zst
cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.zip
Diffstat (limited to 'source/squirrelbindings/SquirrelBindings.cpp')
-rw-r--r--source/squirrelbindings/SquirrelBindings.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/source/squirrelbindings/SquirrelBindings.cpp b/source/squirrelbindings/SquirrelBindings.cpp
index f0291b39b..c24b82c70 100644
--- a/source/squirrelbindings/SquirrelBindings.cpp
+++ b/source/squirrelbindings/SquirrelBindings.cpp
@@ -9,8 +9,7 @@
using namespace Sqrat;
-
-
+#if USE_SQUIRREL
void BindSquirrel(HSQUIRRELVM vm)
{
RootTable()
@@ -91,12 +90,6 @@ void BindSquirrel(HSQUIRRELVM vm)
.Func("GetMetaData", &cPawn::GetMetaData)
.Func("SetMaxHealth", &cPawn::SetMaxHealth)
.Func("GetMaxHealth", &cPawn::GetMaxHealth)
- .Func("GetMaxFood", &cPawn::GetMaxFood)
- .Func("GetFood", &cPawn::GetFood)
- .Func("GetMaxFoodSaturation", &cPawn::GetMaxFoodSaturation)
- .Func("GetFoodSaturation", &cPawn::GetFoodSaturation)
- .Func("SetMaxFoodLevel", &cPawn::SetMaxFoodLevel)
- .Func("GetMaxFoodLevel", &cPawn::SetMaxFoodLevel)
);
RootTable().Bind("cPlayer", DerivedClass<cPlayer, cPawn, NoConstructor>()
@@ -137,8 +130,6 @@ void BindSquirrel(HSQUIRRELVM vm)
.Func("MoveToWorld", &cPlayer::MoveToWorld)
.Func("GetLoadedWorldName", &cPlayer::GetLoadedWorldName)
.Func("UseEquippedItem", &cPlayer::UseEquippedItem)
- .Func("EatItem", &cPlayer::EatItem)
-
);
RootTable().Bind("StringArray", Class<SquirrelStringArray>()
@@ -175,5 +166,6 @@ void BindSquirrel(HSQUIRRELVM vm)
.Const("WeatherChanged", cPluginManager::HOOK_WEATHER_CHANGED)
.Const("UpdatingSign", cPluginManager::HOOK_UPDATING_SIGN)
.Const("UpdatedSign", cPluginManager::HOOK_UPDATED_SIGN));
+}
-} \ No newline at end of file
+#endif \ No newline at end of file