summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 17:32:08 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 17:32:08 +0100
commit7694a0788c796cb08539dcdc3ed4bf9eee3babbf (patch)
tree78873e56309a8eb45b47de6a2d775763568a5a4e
parentfogot to add promise classes (diff)
parentMerge pull request #484 from worktycho/cmake-fixes (diff)
downloadcuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.gz
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.bz2
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.lz
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.xz
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.zst
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt65
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnPlayerFished.lua20
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnPlayerFishing.lua21
-rw-r--r--lib/lua/Makefile944
-rw-r--r--src/Bindings/LuaState.cpp12
-rw-r--r--src/Bindings/LuaState.h1
-rw-r--r--src/Bindings/Plugin.h2
-rw-r--r--src/Bindings/PluginLua.cpp40
-rw-r--r--src/Bindings/PluginLua.h2
-rw-r--r--src/Bindings/PluginManager.cpp42
-rw-r--r--src/Bindings/PluginManager.h4
-rw-r--r--src/Chunk.cpp5
-rw-r--r--src/Items/ItemFishingRod.h8
-rw-r--r--src/Root.cpp4
14 files changed, 190 insertions, 980 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0df702b29..67f70142b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,20 +35,29 @@ MARK_AS_ADVANCED(
CMAKE_EXE_LINKER_FLAGS_PROFILE
CMAKE_SHARED_LINKER_FLAGS_PROFILE )
-if(UNIX)
-set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DNDEBUG")
-set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DNDEBUG")
-set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_DEBUG")
-set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -D_DEBUG")
+# Add the preprocessor macros used for distinguishing between debug and release builds (CMake does this automatically for MSVC):
+if (NOT MSVC)
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
+ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG")
endif()
-if(WIN32)
+if(MSVC)
+ # Make build use multiple threads under MSVC:
add_flags("/MP")
+elseif(APPLE)
+ #on os x clang adds pthread for us but we need to add it for gcc
+ if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ add_flags("-pthread")
+ endif()
else()
+ # Let gcc / clang know that we're compiling a multi-threaded app:
add_flags("-pthread")
endif()
-if(FORCE_32)
+# Allow for a forced 32-bit build under 32-bit OS:
+if (FORCE_32)
add_flags(-m32)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -m32")
@@ -64,21 +73,21 @@ if(FORCE_32)
set(CMAKE_MODULE_LINKER_FLAGS_PROFILE "${CMAKE_MODULE_LINKER_FLAGS_PROFILE} -m32")
endif()
-set(CMAKE_CXX_FLAGS_RELEASE_BAK "${CMAKE_CXX_FLAGS_RELEASE}")
-set(CMAKE_C_FLAGS_RELEASE_BAK "${CMAKE_C_FLAGS_RELEASE}")
-if (UNIX)
+# Set lower warnings-level for the libraries:
+if (MSVC)
+ # Remove /W3 from command line -- cannot just cancel it later with /w like in unix, MSVC produces a D9025 warning (option1 overriden by option2)
+ string(REPLACE "/W3" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
+ string(REPLACE "/W3" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
+ string(REPLACE "/W3" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
+ string(REPLACE "/W3" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
+else()
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -w")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -w")
-else()
- #remove /W3 from command line -- cannot just cancel it later with /w like in unix because of D9025
- #only remove frome relase as we force release
- string(REPLACE "/W3" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
- string(REPLACE "/W3" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -w")
+ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -w")
endif()
-set(CMAKE_BUILD_TYPE_BAK ${CMAKE_BUILD_TYPE})
-set(CMAKE_BUILD_TYPE "Release")
-
+# Under clang, we need to disable ASM support in CryptoPP:
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions(-DCRYPTOPP_DISABLE_ASM)
endif()
@@ -91,6 +100,7 @@ endif()
# The Expat library is linked in statically, make the source files aware of that:
add_definitions(-DXML_STATIC)
+# Include all the libraries:
add_subdirectory(lib/inifile/)
add_subdirectory(lib/jsoncpp/)
add_subdirectory(lib/cryptopp/)
@@ -102,22 +112,11 @@ add_subdirectory(lib/expat/)
add_subdirectory(lib/luaexpat/)
add_subdirectory(lib/md5/)
-set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE_BAK}")
-set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE_BAK}")
-
-#TODo: set -Wall -Werror -Wextra
-if(UNIX)
+# Re-add the maximum warning level:
+# We do not do that for MSVC since MSVC produces an awful lot of warnings for its own STL headers;
+# the important warnings will be turned on using #pragma in Globals.h
+if (NOT MSVC)
add_flags("-Wall -Wextra")
-else()
- add_flags("/Wall")
-endif()
-set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE_BAK}")
-
-if (NOT WIN32)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic")
- set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -rdynamic")
- set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -rdynamic")
- set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_PROFILE} -rdynamic")
endif()
add_subdirectory (src)
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerFished.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerFished.lua
new file mode 100644
index 000000000..4e093f4ae
--- /dev/null
+++ b/MCServer/Plugins/APIDump/Hooks/OnPlayerFished.lua
@@ -0,0 +1,20 @@
+return
+{
+ HOOK_PLAYER_FISHED =
+ {
+ CalledWhen = "A player gets a reward from fishing.",
+ DefaultFnName = "OnPlayerFished", -- also used as pagename
+ Desc = [[
+ This hook gets called after a player reels in the fishing rod. This is a notification-only hook, the reward has already been decided. If a plugin needs to modify the reward, use the {{OnPlayerFishing|HOOK_PLAYER_FISHING}} hook.
+ ]],
+ Params =
+ {
+ { Name = "Player", Type = "{{cPlayer}}", Notes = "The player who pulled the fish in." },
+ { Name = "Reward", Type = "{{cItems}}", Notes = "The reward the player gets. It can be a fish, treasure and junk." },
+ },
+ Returns = [[
+ If the function returns false or no value, the next plugin's callback is called. If the function returns true, no other
+ callback is called for this event.
+ ]],
+ }, -- HOOK_PLAYER_FISHED
+};
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerFishing.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerFishing.lua
new file mode 100644
index 000000000..c5aaecd92
--- /dev/null
+++ b/MCServer/Plugins/APIDump/Hooks/OnPlayerFishing.lua
@@ -0,0 +1,21 @@
+return
+{
+ HOOK_PLAYER_FISHING =
+ {
+ CalledWhen = "A player is about to get a reward from fishing.",
+ DefaultFnName = "OnPlayerFishing", -- also used as pagename
+ Desc = [[
+ This hook gets called when a player right clicks with a fishing rod while the floater is under water. The reward is already descided, but the plugin may change it.
+ ]],
+ Params =
+ {
+ { Name = "Player", Type = "{{cPlayer}}", Notes = "The player who pulled the fish in." },
+ { Name = "Reward", Type = "{{cItems}}", Notes = "The reward the player gets. It can be a fish, treasure and junk." },
+ },
+ Returns = [[
+ If the function returns false or no value, the next plugin's callback is called. Afterwards, the
+ server gives the player his reward. If the function returns true, no other
+ callback is called for this event and the player doesn't get his reward.
+ ]],
+ }, -- HOOK_PLAYER_FISHING
+};
diff --git a/lib/lua/Makefile b/lib/lua/Makefile
deleted file mode 100644
index 8c8cf168a..000000000
--- a/lib/lua/Makefile
+++ /dev/null
@@ -1,944 +0,0 @@
-# CMAKE generated file: DO NOT EDIT!
-# Generated by "Unix Makefiles" Generator, CMake Version 2.8
-
-# Default target executed when no arguments are given to make.
-default_target: all
-.PHONY : default_target
-
-#=============================================================================
-# Special targets provided by cmake.
-
-# Disable implicit rules so canonical targets will work.
-.SUFFIXES:
-
-# Remove some rules from gmake that .SUFFIXES does not remove.
-SUFFIXES =
-
-.SUFFIXES: .hpux_make_needs_suffix_list
-
-# Suppress display of executed commands.
-$(VERBOSE).SILENT:
-
-# A target that is always out of date.
-cmake_force:
-.PHONY : cmake_force
-
-#=============================================================================
-# Set environment variables for the build.
-
-# The shell in which to execute make rules.
-SHELL = /bin/sh
-
-# The CMake executable.
-CMAKE_COMMAND = /usr/bin/cmake
-
-# The command to remove a file.
-RM = /usr/bin/cmake -E remove -f
-
-# The top-level source directory on which CMake was run.
-CMAKE_SOURCE_DIR = /home/tycho/MCServer
-
-# The top-level build directory on which CMake was run.
-CMAKE_BINARY_DIR = /home/tycho/MCServer
-
-#=============================================================================
-# Targets provided globally by CMake.
-
-# Special rule for the target edit_cache
-edit_cache:
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running interactive CMake command-line interface..."
- /usr/bin/cmake -i .
-.PHONY : edit_cache
-
-# Special rule for the target edit_cache
-edit_cache/fast: edit_cache
-.PHONY : edit_cache/fast
-
-# Special rule for the target rebuild_cache
-rebuild_cache:
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
- /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
-.PHONY : rebuild_cache
-
-# Special rule for the target rebuild_cache
-rebuild_cache/fast: rebuild_cache
-.PHONY : rebuild_cache/fast
-
-# The main all target
-all: cmake_check_build_system
- cd /home/tycho/MCServer && $(CMAKE_COMMAND) -E cmake_progress_start /home/tycho/MCServer/CMakeFiles /home/tycho/MCServer/lib/lua/CMakeFiles/progress.marks
- cd /home/tycho/MCServer && $(MAKE) -f CMakeFiles/Makefile2 lib/lua/all
- $(CMAKE_COMMAND) -E cmake_progress_start /home/tycho/MCServer/CMakeFiles 0
-.PHONY : all
-
-# The main clean target
-clean:
- cd /home/tycho/MCServer && $(MAKE) -f CMakeFiles/Makefile2 lib/lua/clean
-.PHONY : clean
-
-# The main clean target
-clean/fast: clean
-.PHONY : clean/fast
-
-# Prepare targets for installation.
-preinstall: all
- cd /home/tycho/MCServer && $(MAKE) -f CMakeFiles/Makefile2 lib/lua/preinstall
-.PHONY : preinstall
-
-# Prepare targets for installation.
-preinstall/fast:
- cd /home/tycho/MCServer && $(MAKE) -f CMakeFiles/Makefile2 lib/lua/preinstall
-.PHONY : preinstall/fast
-
-# clear depends
-depend:
- cd /home/tycho/MCServer && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
-.PHONY : depend
-
-# Convenience name for target.
-lib/lua/CMakeFiles/lua.dir/rule:
- cd /home/tycho/MCServer && $(MAKE) -f CMakeFiles/Makefile2 lib/lua/CMakeFiles/lua.dir/rule
-.PHONY : lib/lua/CMakeFiles/lua.dir/rule
-
-# Convenience name for target.
-lua: lib/lua/CMakeFiles/lua.dir/rule
-.PHONY : lua
-
-# fast build rule for target.
-lua/fast:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/build
-.PHONY : lua/fast
-
-src/lapi.o: src/lapi.c.o
-.PHONY : src/lapi.o
-
-# target to build an object file
-src/lapi.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lapi.c.o
-.PHONY : src/lapi.c.o
-
-src/lapi.i: src/lapi.c.i
-.PHONY : src/lapi.i
-
-# target to preprocess a source file
-src/lapi.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lapi.c.i
-.PHONY : src/lapi.c.i
-
-src/lapi.s: src/lapi.c.s
-.PHONY : src/lapi.s
-
-# target to generate assembly for a file
-src/lapi.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lapi.c.s
-.PHONY : src/lapi.c.s
-
-src/lauxlib.o: src/lauxlib.c.o
-.PHONY : src/lauxlib.o
-
-# target to build an object file
-src/lauxlib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lauxlib.c.o
-.PHONY : src/lauxlib.c.o
-
-src/lauxlib.i: src/lauxlib.c.i
-.PHONY : src/lauxlib.i
-
-# target to preprocess a source file
-src/lauxlib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lauxlib.c.i
-.PHONY : src/lauxlib.c.i
-
-src/lauxlib.s: src/lauxlib.c.s
-.PHONY : src/lauxlib.s
-
-# target to generate assembly for a file
-src/lauxlib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lauxlib.c.s
-.PHONY : src/lauxlib.c.s
-
-src/lbaselib.o: src/lbaselib.c.o
-.PHONY : src/lbaselib.o
-
-# target to build an object file
-src/lbaselib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lbaselib.c.o
-.PHONY : src/lbaselib.c.o
-
-src/lbaselib.i: src/lbaselib.c.i
-.PHONY : src/lbaselib.i
-
-# target to preprocess a source file
-src/lbaselib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lbaselib.c.i
-.PHONY : src/lbaselib.c.i
-
-src/lbaselib.s: src/lbaselib.c.s
-.PHONY : src/lbaselib.s
-
-# target to generate assembly for a file
-src/lbaselib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lbaselib.c.s
-.PHONY : src/lbaselib.c.s
-
-src/lcode.o: src/lcode.c.o
-.PHONY : src/lcode.o
-
-# target to build an object file
-src/lcode.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lcode.c.o
-.PHONY : src/lcode.c.o
-
-src/lcode.i: src/lcode.c.i
-.PHONY : src/lcode.i
-
-# target to preprocess a source file
-src/lcode.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lcode.c.i
-.PHONY : src/lcode.c.i
-
-src/lcode.s: src/lcode.c.s
-.PHONY : src/lcode.s
-
-# target to generate assembly for a file
-src/lcode.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lcode.c.s
-.PHONY : src/lcode.c.s
-
-src/ldblib.o: src/ldblib.c.o
-.PHONY : src/ldblib.o
-
-# target to build an object file
-src/ldblib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldblib.c.o
-.PHONY : src/ldblib.c.o
-
-src/ldblib.i: src/ldblib.c.i
-.PHONY : src/ldblib.i
-
-# target to preprocess a source file
-src/ldblib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldblib.c.i
-.PHONY : src/ldblib.c.i
-
-src/ldblib.s: src/ldblib.c.s
-.PHONY : src/ldblib.s
-
-# target to generate assembly for a file
-src/ldblib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldblib.c.s
-.PHONY : src/ldblib.c.s
-
-src/ldebug.o: src/ldebug.c.o
-.PHONY : src/ldebug.o
-
-# target to build an object file
-src/ldebug.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldebug.c.o
-.PHONY : src/ldebug.c.o
-
-src/ldebug.i: src/ldebug.c.i
-.PHONY : src/ldebug.i
-
-# target to preprocess a source file
-src/ldebug.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldebug.c.i
-.PHONY : src/ldebug.c.i
-
-src/ldebug.s: src/ldebug.c.s
-.PHONY : src/ldebug.s
-
-# target to generate assembly for a file
-src/ldebug.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldebug.c.s
-.PHONY : src/ldebug.c.s
-
-src/ldo.o: src/ldo.c.o
-.PHONY : src/ldo.o
-
-# target to build an object file
-src/ldo.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldo.c.o
-.PHONY : src/ldo.c.o
-
-src/ldo.i: src/ldo.c.i
-.PHONY : src/ldo.i
-
-# target to preprocess a source file
-src/ldo.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldo.c.i
-.PHONY : src/ldo.c.i
-
-src/ldo.s: src/ldo.c.s
-.PHONY : src/ldo.s
-
-# target to generate assembly for a file
-src/ldo.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldo.c.s
-.PHONY : src/ldo.c.s
-
-src/ldump.o: src/ldump.c.o
-.PHONY : src/ldump.o
-
-# target to build an object file
-src/ldump.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldump.c.o
-.PHONY : src/ldump.c.o
-
-src/ldump.i: src/ldump.c.i
-.PHONY : src/ldump.i
-
-# target to preprocess a source file
-src/ldump.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldump.c.i
-.PHONY : src/ldump.c.i
-
-src/ldump.s: src/ldump.c.s
-.PHONY : src/ldump.s
-
-# target to generate assembly for a file
-src/ldump.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ldump.c.s
-.PHONY : src/ldump.c.s
-
-src/lfunc.o: src/lfunc.c.o
-.PHONY : src/lfunc.o
-
-# target to build an object file
-src/lfunc.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lfunc.c.o
-.PHONY : src/lfunc.c.o
-
-src/lfunc.i: src/lfunc.c.i
-.PHONY : src/lfunc.i
-
-# target to preprocess a source file
-src/lfunc.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lfunc.c.i
-.PHONY : src/lfunc.c.i
-
-src/lfunc.s: src/lfunc.c.s
-.PHONY : src/lfunc.s
-
-# target to generate assembly for a file
-src/lfunc.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lfunc.c.s
-.PHONY : src/lfunc.c.s
-
-src/lgc.o: src/lgc.c.o
-.PHONY : src/lgc.o
-
-# target to build an object file
-src/lgc.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lgc.c.o
-.PHONY : src/lgc.c.o
-
-src/lgc.i: src/lgc.c.i
-.PHONY : src/lgc.i
-
-# target to preprocess a source file
-src/lgc.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lgc.c.i
-.PHONY : src/lgc.c.i
-
-src/lgc.s: src/lgc.c.s
-.PHONY : src/lgc.s
-
-# target to generate assembly for a file
-src/lgc.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lgc.c.s
-.PHONY : src/lgc.c.s
-
-src/linit.o: src/linit.c.o
-.PHONY : src/linit.o
-
-# target to build an object file
-src/linit.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/linit.c.o
-.PHONY : src/linit.c.o
-
-src/linit.i: src/linit.c.i
-.PHONY : src/linit.i
-
-# target to preprocess a source file
-src/linit.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/linit.c.i
-.PHONY : src/linit.c.i
-
-src/linit.s: src/linit.c.s
-.PHONY : src/linit.s
-
-# target to generate assembly for a file
-src/linit.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/linit.c.s
-.PHONY : src/linit.c.s
-
-src/liolib.o: src/liolib.c.o
-.PHONY : src/liolib.o
-
-# target to build an object file
-src/liolib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/liolib.c.o
-.PHONY : src/liolib.c.o
-
-src/liolib.i: src/liolib.c.i
-.PHONY : src/liolib.i
-
-# target to preprocess a source file
-src/liolib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/liolib.c.i
-.PHONY : src/liolib.c.i
-
-src/liolib.s: src/liolib.c.s
-.PHONY : src/liolib.s
-
-# target to generate assembly for a file
-src/liolib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/liolib.c.s
-.PHONY : src/liolib.c.s
-
-src/llex.o: src/llex.c.o
-.PHONY : src/llex.o
-
-# target to build an object file
-src/llex.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/llex.c.o
-.PHONY : src/llex.c.o
-
-src/llex.i: src/llex.c.i
-.PHONY : src/llex.i
-
-# target to preprocess a source file
-src/llex.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/llex.c.i
-.PHONY : src/llex.c.i
-
-src/llex.s: src/llex.c.s
-.PHONY : src/llex.s
-
-# target to generate assembly for a file
-src/llex.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/llex.c.s
-.PHONY : src/llex.c.s
-
-src/lmathlib.o: src/lmathlib.c.o
-.PHONY : src/lmathlib.o
-
-# target to build an object file
-src/lmathlib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lmathlib.c.o
-.PHONY : src/lmathlib.c.o
-
-src/lmathlib.i: src/lmathlib.c.i
-.PHONY : src/lmathlib.i
-
-# target to preprocess a source file
-src/lmathlib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lmathlib.c.i
-.PHONY : src/lmathlib.c.i
-
-src/lmathlib.s: src/lmathlib.c.s
-.PHONY : src/lmathlib.s
-
-# target to generate assembly for a file
-src/lmathlib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lmathlib.c.s
-.PHONY : src/lmathlib.c.s
-
-src/lmem.o: src/lmem.c.o
-.PHONY : src/lmem.o
-
-# target to build an object file
-src/lmem.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lmem.c.o
-.PHONY : src/lmem.c.o
-
-src/lmem.i: src/lmem.c.i
-.PHONY : src/lmem.i
-
-# target to preprocess a source file
-src/lmem.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lmem.c.i
-.PHONY : src/lmem.c.i
-
-src/lmem.s: src/lmem.c.s
-.PHONY : src/lmem.s
-
-# target to generate assembly for a file
-src/lmem.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lmem.c.s
-.PHONY : src/lmem.c.s
-
-src/loadlib.o: src/loadlib.c.o
-.PHONY : src/loadlib.o
-
-# target to build an object file
-src/loadlib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/loadlib.c.o
-.PHONY : src/loadlib.c.o
-
-src/loadlib.i: src/loadlib.c.i
-.PHONY : src/loadlib.i
-
-# target to preprocess a source file
-src/loadlib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/loadlib.c.i
-.PHONY : src/loadlib.c.i
-
-src/loadlib.s: src/loadlib.c.s
-.PHONY : src/loadlib.s
-
-# target to generate assembly for a file
-src/loadlib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/loadlib.c.s
-.PHONY : src/loadlib.c.s
-
-src/lobject.o: src/lobject.c.o
-.PHONY : src/lobject.o
-
-# target to build an object file
-src/lobject.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lobject.c.o
-.PHONY : src/lobject.c.o
-
-src/lobject.i: src/lobject.c.i
-.PHONY : src/lobject.i
-
-# target to preprocess a source file
-src/lobject.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lobject.c.i
-.PHONY : src/lobject.c.i
-
-src/lobject.s: src/lobject.c.s
-.PHONY : src/lobject.s
-
-# target to generate assembly for a file
-src/lobject.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lobject.c.s
-.PHONY : src/lobject.c.s
-
-src/lopcodes.o: src/lopcodes.c.o
-.PHONY : src/lopcodes.o
-
-# target to build an object file
-src/lopcodes.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lopcodes.c.o
-.PHONY : src/lopcodes.c.o
-
-src/lopcodes.i: src/lopcodes.c.i
-.PHONY : src/lopcodes.i
-
-# target to preprocess a source file
-src/lopcodes.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lopcodes.c.i
-.PHONY : src/lopcodes.c.i
-
-src/lopcodes.s: src/lopcodes.c.s
-.PHONY : src/lopcodes.s
-
-# target to generate assembly for a file
-src/lopcodes.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lopcodes.c.s
-.PHONY : src/lopcodes.c.s
-
-src/loslib.o: src/loslib.c.o
-.PHONY : src/loslib.o
-
-# target to build an object file
-src/loslib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/loslib.c.o
-.PHONY : src/loslib.c.o
-
-src/loslib.i: src/loslib.c.i
-.PHONY : src/loslib.i
-
-# target to preprocess a source file
-src/loslib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/loslib.c.i
-.PHONY : src/loslib.c.i
-
-src/loslib.s: src/loslib.c.s
-.PHONY : src/loslib.s
-
-# target to generate assembly for a file
-src/loslib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/loslib.c.s
-.PHONY : src/loslib.c.s
-
-src/lparser.o: src/lparser.c.o
-.PHONY : src/lparser.o
-
-# target to build an object file
-src/lparser.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lparser.c.o
-.PHONY : src/lparser.c.o
-
-src/lparser.i: src/lparser.c.i
-.PHONY : src/lparser.i
-
-# target to preprocess a source file
-src/lparser.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lparser.c.i
-.PHONY : src/lparser.c.i
-
-src/lparser.s: src/lparser.c.s
-.PHONY : src/lparser.s
-
-# target to generate assembly for a file
-src/lparser.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lparser.c.s
-.PHONY : src/lparser.c.s
-
-src/lstate.o: src/lstate.c.o
-.PHONY : src/lstate.o
-
-# target to build an object file
-src/lstate.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstate.c.o
-.PHONY : src/lstate.c.o
-
-src/lstate.i: src/lstate.c.i
-.PHONY : src/lstate.i
-
-# target to preprocess a source file
-src/lstate.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstate.c.i
-.PHONY : src/lstate.c.i
-
-src/lstate.s: src/lstate.c.s
-.PHONY : src/lstate.s
-
-# target to generate assembly for a file
-src/lstate.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstate.c.s
-.PHONY : src/lstate.c.s
-
-src/lstring.o: src/lstring.c.o
-.PHONY : src/lstring.o
-
-# target to build an object file
-src/lstring.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstring.c.o
-.PHONY : src/lstring.c.o
-
-src/lstring.i: src/lstring.c.i
-.PHONY : src/lstring.i
-
-# target to preprocess a source file
-src/lstring.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstring.c.i
-.PHONY : src/lstring.c.i
-
-src/lstring.s: src/lstring.c.s
-.PHONY : src/lstring.s
-
-# target to generate assembly for a file
-src/lstring.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstring.c.s
-.PHONY : src/lstring.c.s
-
-src/lstrlib.o: src/lstrlib.c.o
-.PHONY : src/lstrlib.o
-
-# target to build an object file
-src/lstrlib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstrlib.c.o
-.PHONY : src/lstrlib.c.o
-
-src/lstrlib.i: src/lstrlib.c.i
-.PHONY : src/lstrlib.i
-
-# target to preprocess a source file
-src/lstrlib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstrlib.c.i
-.PHONY : src/lstrlib.c.i
-
-src/lstrlib.s: src/lstrlib.c.s
-.PHONY : src/lstrlib.s
-
-# target to generate assembly for a file
-src/lstrlib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lstrlib.c.s
-.PHONY : src/lstrlib.c.s
-
-src/ltable.o: src/ltable.c.o
-.PHONY : src/ltable.o
-
-# target to build an object file
-src/ltable.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltable.c.o
-.PHONY : src/ltable.c.o
-
-src/ltable.i: src/ltable.c.i
-.PHONY : src/ltable.i
-
-# target to preprocess a source file
-src/ltable.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltable.c.i
-.PHONY : src/ltable.c.i
-
-src/ltable.s: src/ltable.c.s
-.PHONY : src/ltable.s
-
-# target to generate assembly for a file
-src/ltable.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltable.c.s
-.PHONY : src/ltable.c.s
-
-src/ltablib.o: src/ltablib.c.o
-.PHONY : src/ltablib.o
-
-# target to build an object file
-src/ltablib.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltablib.c.o
-.PHONY : src/ltablib.c.o
-
-src/ltablib.i: src/ltablib.c.i
-.PHONY : src/ltablib.i
-
-# target to preprocess a source file
-src/ltablib.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltablib.c.i
-.PHONY : src/ltablib.c.i
-
-src/ltablib.s: src/ltablib.c.s
-.PHONY : src/ltablib.s
-
-# target to generate assembly for a file
-src/ltablib.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltablib.c.s
-.PHONY : src/ltablib.c.s
-
-src/ltm.o: src/ltm.c.o
-.PHONY : src/ltm.o
-
-# target to build an object file
-src/ltm.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltm.c.o
-.PHONY : src/ltm.c.o
-
-src/ltm.i: src/ltm.c.i
-.PHONY : src/ltm.i
-
-# target to preprocess a source file
-src/ltm.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltm.c.i
-.PHONY : src/ltm.c.i
-
-src/ltm.s: src/ltm.c.s
-.PHONY : src/ltm.s
-
-# target to generate assembly for a file
-src/ltm.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/ltm.c.s
-.PHONY : src/ltm.c.s
-
-src/lundump.o: src/lundump.c.o
-.PHONY : src/lundump.o
-
-# target to build an object file
-src/lundump.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lundump.c.o
-.PHONY : src/lundump.c.o
-
-src/lundump.i: src/lundump.c.i
-.PHONY : src/lundump.i
-
-# target to preprocess a source file
-src/lundump.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lundump.c.i
-.PHONY : src/lundump.c.i
-
-src/lundump.s: src/lundump.c.s
-.PHONY : src/lundump.s
-
-# target to generate assembly for a file
-src/lundump.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lundump.c.s
-.PHONY : src/lundump.c.s
-
-src/lvm.o: src/lvm.c.o
-.PHONY : src/lvm.o
-
-# target to build an object file
-src/lvm.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lvm.c.o
-.PHONY : src/lvm.c.o
-
-src/lvm.i: src/lvm.c.i
-.PHONY : src/lvm.i
-
-# target to preprocess a source file
-src/lvm.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lvm.c.i
-.PHONY : src/lvm.c.i
-
-src/lvm.s: src/lvm.c.s
-.PHONY : src/lvm.s
-
-# target to generate assembly for a file
-src/lvm.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lvm.c.s
-.PHONY : src/lvm.c.s
-
-src/lzio.o: src/lzio.c.o
-.PHONY : src/lzio.o
-
-# target to build an object file
-src/lzio.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lzio.c.o
-.PHONY : src/lzio.c.o
-
-src/lzio.i: src/lzio.c.i
-.PHONY : src/lzio.i
-
-# target to preprocess a source file
-src/lzio.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lzio.c.i
-.PHONY : src/lzio.c.i
-
-src/lzio.s: src/lzio.c.s
-.PHONY : src/lzio.s
-
-# target to generate assembly for a file
-src/lzio.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/lzio.c.s
-.PHONY : src/lzio.c.s
-
-src/print.o: src/print.c.o
-.PHONY : src/print.o
-
-# target to build an object file
-src/print.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/print.c.o
-.PHONY : src/print.c.o
-
-src/print.i: src/print.c.i
-.PHONY : src/print.i
-
-# target to preprocess a source file
-src/print.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/print.c.i
-.PHONY : src/print.c.i
-
-src/print.s: src/print.c.s
-.PHONY : src/print.s
-
-# target to generate assembly for a file
-src/print.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/lua/CMakeFiles/lua.dir/build.make lib/lua/CMakeFiles/lua.dir/src/print.c.s
-.PHONY : src/print.c.s
-
-# Help Target
-help:
- @echo "The following are some of the valid targets for this Makefile:"
- @echo "... all (the default if no target is provided)"
- @echo "... clean"
- @echo "... depend"
- @echo "... edit_cache"
- @echo "... lua"
- @echo "... rebuild_cache"
- @echo "... src/lapi.o"
- @echo "... src/lapi.i"
- @echo "... src/lapi.s"
- @echo "... src/lauxlib.o"
- @echo "... src/lauxlib.i"
- @echo "... src/lauxlib.s"
- @echo "... src/lbaselib.o"
- @echo "... src/lbaselib.i"
- @echo "... src/lbaselib.s"
- @echo "... src/lcode.o"
- @echo "... src/lcode.i"
- @echo "... src/lcode.s"
- @echo "... src/ldblib.o"
- @echo "... src/ldblib.i"
- @echo "... src/ldblib.s"
- @echo "... src/ldebug.o"
- @echo "... src/ldebug.i"
- @echo "... src/ldebug.s"
- @echo "... src/ldo.o"
- @echo "... src/ldo.i"
- @echo "... src/ldo.s"
- @echo "... src/ldump.o"
- @echo "... src/ldump.i"
- @echo "... src/ldump.s"
- @echo "... src/lfunc.o"
- @echo "... src/lfunc.i"
- @echo "... src/lfunc.s"
- @echo "... src/lgc.o"
- @echo "... src/lgc.i"
- @echo "... src/lgc.s"
- @echo "... src/linit.o"
- @echo "... src/linit.i"
- @echo "... src/linit.s"
- @echo "... src/liolib.o"
- @echo "... src/liolib.i"
- @echo "... src/liolib.s"
- @echo "... src/llex.o"
- @echo "... src/llex.i"
- @echo "... src/llex.s"
- @echo "... src/lmathlib.o"
- @echo "... src/lmathlib.i"
- @echo "... src/lmathlib.s"
- @echo "... src/lmem.o"
- @echo "... src/lmem.i"
- @echo "... src/lmem.s"
- @echo "... src/loadlib.o"
- @echo "... src/loadlib.i"
- @echo "... src/loadlib.s"
- @echo "... src/lobject.o"
- @echo "... src/lobject.i"
- @echo "... src/lobject.s"
- @echo "... src/lopcodes.o"
- @echo "... src/lopcodes.i"
- @echo "... src/lopcodes.s"
- @echo "... src/loslib.o"
- @echo "... src/loslib.i"
- @echo "... src/loslib.s"
- @echo "... src/lparser.o"
- @echo "... src/lparser.i"
- @echo "... src/lparser.s"
- @echo "... src/lstate.o"
- @echo "... src/lstate.i"
- @echo "... src/lstate.s"
- @echo "... src/lstring.o"
- @echo "... src/lstring.i"
- @echo "... src/lstring.s"
- @echo "... src/lstrlib.o"
- @echo "... src/lstrlib.i"
- @echo "... src/lstrlib.s"
- @echo "... src/ltable.o"
- @echo "... src/ltable.i"
- @echo "... src/ltable.s"
- @echo "... src/ltablib.o"
- @echo "... src/ltablib.i"
- @echo "... src/ltablib.s"
- @echo "... src/ltm.o"
- @echo "... src/ltm.i"
- @echo "... src/ltm.s"
- @echo "... src/lundump.o"
- @echo "... src/lundump.i"
- @echo "... src/lundump.s"
- @echo "... src/lvm.o"
- @echo "... src/lvm.i"
- @echo "... src/lvm.s"
- @echo "... src/lzio.o"
- @echo "... src/lzio.i"
- @echo "... src/lzio.s"
- @echo "... src/print.o"
- @echo "... src/print.i"
- @echo "... src/print.s"
-.PHONY : help
-
-
-
-#=============================================================================
-# Special targets to cleanup operation of make.
-
-# Special rule to run CMake to check the build system integrity.
-# No rule that depends on this can have commands that come from listfiles
-# because they might be regenerated.
-cmake_check_build_system:
- cd /home/tycho/MCServer && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
-.PHONY : cmake_check_build_system
-
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 64a818a60..a684620f3 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -468,6 +468,18 @@ void cLuaState::Push(cItems * a_Items)
+void cLuaState::Push(const cItems & a_Items)
+{
+ ASSERT(IsValid());
+
+ tolua_pushusertype(m_LuaState, (void *)&a_Items, "cItems");
+ m_NumCurrentFunctionArgs += 1;
+}
+
+
+
+
+
void cLuaState::Push(cClientHandle * a_Client)
{
ASSERT(IsValid());
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index a6c31b6d3..796559b6f 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -165,6 +165,7 @@ public:
void Push(cMonster * a_Monster);
void Push(cItem * a_Item);
void Push(cItems * a_Items);
+ void Push(const cItems & a_Items);
void Push(cClientHandle * a_ClientHandle);
void Push(cPickup * a_Pickup);
void Push(cChunkDesc * a_ChunkDesc);
diff --git a/src/Bindings/Plugin.h b/src/Bindings/Plugin.h
index ee0f8a062..2c893a65d 100644
--- a/src/Bindings/Plugin.h
+++ b/src/Bindings/Plugin.h
@@ -68,6 +68,8 @@ public:
virtual bool OnPlayerBreakingBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) = 0;
virtual bool OnPlayerBrokenBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) = 0;
virtual bool OnPlayerEating (cPlayer & a_Player) = 0;
+ virtual bool OnPlayerFished (cPlayer & a_Player, const cItems & a_Reward) = 0;
+ virtual bool OnPlayerFishing (cPlayer & a_Player, cItems & a_Reward) = 0;
virtual bool OnPlayerJoined (cPlayer & a_Player) = 0;
virtual bool OnPlayerLeftClick (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status) = 0;
virtual bool OnPlayerMoved (cPlayer & a_Player) = 0;
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index 69e83fb0a..87212ed85 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -630,6 +630,46 @@ bool cPluginLua::OnPlayerEating(cPlayer & a_Player)
+bool cPluginLua::OnPlayerFished(cPlayer & a_Player, const cItems & a_Reward)
+{
+ cCSLock Lock(m_CriticalSection);
+ bool res = false;
+ cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PLAYER_FISHED];
+ for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
+ {
+ m_LuaState.Call((int)(**itr), &a_Player, a_Reward, cLuaState::Return, res);
+ if (res)
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
+
+
+
+
+bool cPluginLua::OnPlayerFishing(cPlayer & a_Player, cItems & a_Reward)
+{
+ cCSLock Lock(m_CriticalSection);
+ bool res = false;
+ cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PLAYER_FISHING];
+ for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
+ {
+ m_LuaState.Call((int)(**itr), &a_Player, a_Reward, cLuaState::Return, res);
+ if (res)
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
+
+
+
+
bool cPluginLua::OnPlayerJoined(cPlayer & a_Player)
{
cCSLock Lock(m_CriticalSection);
diff --git a/src/Bindings/PluginLua.h b/src/Bindings/PluginLua.h
index 1b257285e..a47ab32e0 100644
--- a/src/Bindings/PluginLua.h
+++ b/src/Bindings/PluginLua.h
@@ -65,6 +65,8 @@ public:
virtual bool OnPlayerBreakingBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override;
virtual bool OnPlayerBrokenBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override;
virtual bool OnPlayerEating (cPlayer & a_Player) override;
+ virtual bool OnPlayerFished (cPlayer & a_Player, const cItems & a_Reward) override;
+ virtual bool OnPlayerFishing (cPlayer & a_Player, cItems & a_Reward) override;
virtual bool OnPlayerJoined (cPlayer & a_Player) override;
virtual bool OnPlayerMoved (cPlayer & a_Player) override;
virtual bool OnPlayerLeftClick (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status) override;
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index ffffe1a23..3a6c542b1 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -694,6 +694,48 @@ bool cPluginManager::CallHookPlayerEating(cPlayer & a_Player)
+bool cPluginManager::CallHookPlayerFished(cPlayer & a_Player, const cItems a_Reward)
+{
+ HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_FISHED);
+ if (Plugins == m_Hooks.end())
+ {
+ return false;
+ }
+ for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
+ {
+ if ((*itr)->OnPlayerFished(a_Player, a_Reward))
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
+
+
+
+
+bool cPluginManager::CallHookPlayerFishing(cPlayer & a_Player, cItems a_Reward)
+{
+ HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_FISHING);
+ if (Plugins == m_Hooks.end())
+ {
+ return false;
+ }
+ for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
+ {
+ if ((*itr)->OnPlayerFishing(a_Player, a_Reward))
+ {
+ return true;
+ }
+ }
+ return false;
+}
+
+
+
+
+
bool cPluginManager::CallHookPlayerJoined(cPlayer & a_Player)
{
HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_JOINED);
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h
index e94421057..16c64d86f 100644
--- a/src/Bindings/PluginManager.h
+++ b/src/Bindings/PluginManager.h
@@ -80,6 +80,8 @@ public: // tolua_export
HOOK_PLAYER_BREAKING_BLOCK,
HOOK_PLAYER_BROKEN_BLOCK,
HOOK_PLAYER_EATING,
+ HOOK_PLAYER_FISHED,
+ HOOK_PLAYER_FISHING,
HOOK_PLAYER_JOINED,
HOOK_PLAYER_LEFT_CLICK,
HOOK_PLAYER_MOVING,
@@ -168,6 +170,8 @@ public: // tolua_export
bool CallHookPlayerBreakingBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
bool CallHookPlayerBrokenBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
bool CallHookPlayerEating (cPlayer & a_Player);
+ bool CallHookPlayerFished (cPlayer & a_Player, const cItems a_Reward);
+ bool CallHookPlayerFishing (cPlayer & a_Player, cItems a_Reward);
bool CallHookPlayerJoined (cPlayer & a_Player);
bool CallHookPlayerMoving (cPlayer & a_Player);
bool CallHookPlayerLeftClick (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status);
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index b229a4aff..fb26e983d 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -529,6 +529,7 @@ void cChunk::SpawnMobs(cMobSpawner& a_MobSpawner)
/*
NIBBLETYPE SkyLight = 0;
+
NIBBLETYPE BlockLight = 0;
*/
@@ -2898,3 +2899,7 @@ NIBBLETYPE cChunk::GetTimeAlteredLight(NIBBLETYPE a_Skylight) const
+
+
+
+
diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h
index 941ce3b71..b2eaee63a 100644
--- a/src/Items/ItemFishingRod.h
+++ b/src/Items/ItemFishingRod.h
@@ -9,9 +9,11 @@
#pragma once
+#include "../Bindings/PluginManager.h"
#include "../Entities/Floater.h"
#include "../Entities/Entity.h"
#include "../Item.h"
+#include "../Root.h"
@@ -210,10 +212,14 @@ public:
}
}
-
+ if (cRoot::Get()->GetPluginManager()->CallHookPlayerFishing(*a_Player, Drops))
+ {
+ return true;
+ }
Vector3d FloaterPos = FloaterInfo.GetPos();
Vector3d FlyDirection = a_Player->GetEyePosition() - FloaterPos;
a_World->SpawnItemPickups(Drops, FloaterPos.x, FloaterPos.y, FloaterPos.z, FlyDirection.x, FlyDirection.y + 1, FlyDirection.z);
+ cRoot::Get()->GetPluginManager()->CallHookPlayerFished(*a_Player, Drops);
}
}
else
diff --git a/src/Root.cpp b/src/Root.cpp
index 16a521698..fa1fdb37a 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -701,9 +701,9 @@ int cRoot::GetPhysicalRAMUsage(void)
{
AString Line;
std::getline(StatFile, Line);
- if (strncmp(Line.c_str(), "VmRSS:", 7) == 0)
+ if (strncmp(Line.c_str(), "VmRSS:", 6) == 0)
{
- int res = atoi(Line.c_str() + 8);
+ int res = atoi(Line.c_str() + 7);
return (res == 0) ? -1 : res; // If parsing failed, return -1
}
}