From 6e7c0e33b5dd6d86d66ac2eb1a07a33652a708fd Mon Sep 17 00:00:00 2001 From: Tycho Date: Wed, 17 Sep 2014 18:40:10 +0100 Subject: Added first test to show the object can be created --- src/Bindings/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Bindings') diff --git a/src/Bindings/CMakeLists.txt b/src/Bindings/CMakeLists.txt index 7a1769e9a..930ee9771 100644 --- a/src/Bindings/CMakeLists.txt +++ b/src/Bindings/CMakeLists.txt @@ -129,6 +129,8 @@ set_source_files_properties(${CMAKE_SOURCE_DIR}/src/Bindings/Bindings.cpp PROPER set_source_files_properties(${CMAKE_SOURCE_DIR}/src/Bindings/Bindings.h PROPERTIES GENERATED TRUE) set_source_files_properties(${CMAKE_SOURCE_DIR}/src/Bindings/LuaState_Call.inc PROPERTIES GENERATED TRUE) +set_source_files_properties(${CMAKE_SOURCE_DIR}/src/Bindings/Bindings.cpp PROPERTIES COMPILE_FLAGS -Wno-error) + if(NOT MSVC) add_library(Bindings ${SRCS} ${HDRS}) -- cgit v1.2.3 From 6ffb7835e7903bb97d747a80d25c8c72887ea11a Mon Sep 17 00:00:00 2001 From: Tycho Date: Fri, 26 Sep 2014 16:26:03 +0100 Subject: Removed a few unnessicary includes --- src/Bindings/DeprecatedBindings.cpp | 5 ----- src/Bindings/LuaChunkStay.cpp | 1 - src/Bindings/LuaChunkStay.h | 1 + src/Bindings/LuaState.h | 1 - src/Bindings/LuaWindow.cpp | 1 - src/Bindings/ManualBindings.cpp | 2 -- src/Bindings/Plugin.h | 14 +++++++++----- src/Bindings/PluginLua.cpp | 4 +++- src/Bindings/PluginManager.cpp | 2 -- src/Bindings/PluginManager.h | 6 +++--- 10 files changed, 16 insertions(+), 21 deletions(-) (limited to 'src/Bindings') diff --git a/src/Bindings/DeprecatedBindings.cpp b/src/Bindings/DeprecatedBindings.cpp index 36243bc92..02aa15be4 100644 --- a/src/Bindings/DeprecatedBindings.cpp +++ b/src/Bindings/DeprecatedBindings.cpp @@ -5,11 +5,6 @@ #undef TOLUA_TEMPLATE_BIND #include "tolua++/include/tolua++.h" -#include "Plugin.h" -#include "PluginLua.h" -#include "PluginManager.h" -#include "LuaWindow.h" -#include "LuaChunkStay.h" #include "../BlockInfo.h" diff --git a/src/Bindings/LuaChunkStay.cpp b/src/Bindings/LuaChunkStay.cpp index 154bcb200..a3d3a8090 100644 --- a/src/Bindings/LuaChunkStay.cpp +++ b/src/Bindings/LuaChunkStay.cpp @@ -6,7 +6,6 @@ #include "Globals.h" #include "LuaChunkStay.h" #include "PluginLua.h" -#include "../World.h" diff --git a/src/Bindings/LuaChunkStay.h b/src/Bindings/LuaChunkStay.h index 49ab9a0ad..d76b67de9 100644 --- a/src/Bindings/LuaChunkStay.h +++ b/src/Bindings/LuaChunkStay.h @@ -18,6 +18,7 @@ // fwd: class cPluginLua; +class cChunkMap; diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h index 44f187701..094a200e0 100644 --- a/src/Bindings/LuaState.h +++ b/src/Bindings/LuaState.h @@ -56,7 +56,6 @@ struct HTTPRequest; class cWebAdmin; struct HTTPTemplateRequest; class cTNTEntity; -class cCreeper; class cHopperEntity; class cBlockEntity; class cBoundingBox; diff --git a/src/Bindings/LuaWindow.cpp b/src/Bindings/LuaWindow.cpp index 1a2582ab0..c4d03b86b 100644 --- a/src/Bindings/LuaWindow.cpp +++ b/src/Bindings/LuaWindow.cpp @@ -6,7 +6,6 @@ #include "LuaWindow.h" #include "../UI/SlotArea.h" #include "PluginLua.h" -#include "../Entities/Player.h" #include "lua/src/lauxlib.h" // Needed for LUA_REFNIL diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index b7ea65759..d8134f159 100644 --- a/src/Bindings/ManualBindings.cpp +++ b/src/Bindings/ManualBindings.cpp @@ -5,7 +5,6 @@ #undef TOLUA_TEMPLATE_BIND #include "tolua++/include/tolua++.h" #include "polarssl/md5.h" -#include "Plugin.h" #include "PluginLua.h" #include "PluginManager.h" #include "LuaWindow.h" @@ -27,7 +26,6 @@ #include "../BlockEntities/MobHeadEntity.h" #include "../BlockEntities/FlowerPotEntity.h" #include "../LineBlockTracer.h" -#include "../Protocol/Authenticator.h" #include "../WorldStorage/SchematicFileSerializer.h" #include "../CompositeChat.h" diff --git a/src/Bindings/Plugin.h b/src/Bindings/Plugin.h index c9a53346d..9c10a1d56 100644 --- a/src/Bindings/Plugin.h +++ b/src/Bindings/Plugin.h @@ -1,23 +1,27 @@ #pragma once -#include "PluginManager.h" +//#include "PluginManager.h" +#include "Defines.h" +class cCommandOutputCallback; +class cItems; +class cHopperEntity; +class cBlockEntityWithItems; class cClientHandle; -class cPlayer; class cPickup; -class cItem; +class cPlayer; +class cProjectileEntity; class cEntity; +class cMonster; class cWorld; class cChunkDesc; struct TakeDamageInfo; -// fwd: cPlayer.h -class cPlayer; // fwd: CraftingRecipes.h class cCraftingGrid; diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index 2c2d05547..2629eb641 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -12,10 +12,12 @@ #endif #include "PluginLua.h" #include "../CommandOutput.h" +#include "PluginManager.h" +#include "../Item.h" extern "C" { - #include "lua/src/lualib.h" + #include "lua/src/lauxlib.h" } #undef TOLUA_TEMPLATE_BIND diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index f62e6ae02..e0faa838a 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -4,12 +4,10 @@ #include "PluginManager.h" #include "Plugin.h" #include "PluginLua.h" -#include "../WebAdmin.h" #include "../Item.h" #include "../Root.h" #include "../Server.h" #include "../CommandOutput.h" -#include "../ChatColor.h" #include "inifile/iniFile.h" #include "../Entities/Player.h" diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h index cef6619d7..fff3bc323 100644 --- a/src/Bindings/PluginManager.h +++ b/src/Bindings/PluginManager.h @@ -1,9 +1,8 @@ #pragma once -#include "../Item.h" - +#include "Defines.h" @@ -36,7 +35,6 @@ class cPickup; // fwd: Pawn.h struct TakeDamageInfo; -class cPawn; // fwd: CommandOutput.h class cCommandOutputCallback; @@ -49,6 +47,8 @@ class cBlockEntityWithItems; +class cItems; + // tolua_begin -- cgit v1.2.3 From a3f940f47c8981146feed66225c1dd8066bac0e2 Mon Sep 17 00:00:00 2001 From: Tycho Date: Fri, 26 Sep 2014 18:13:19 +0100 Subject: Removed more unessicary includes --- src/Bindings/WebPlugin.cpp | 1 - src/Bindings/WebPlugin.h | 1 - 2 files changed, 2 deletions(-) (limited to 'src/Bindings') diff --git a/src/Bindings/WebPlugin.cpp b/src/Bindings/WebPlugin.cpp index 4fa64d937..eca1c74e6 100644 --- a/src/Bindings/WebPlugin.cpp +++ b/src/Bindings/WebPlugin.cpp @@ -3,7 +3,6 @@ #include "WebPlugin.h" #include "../WebAdmin.h" -#include "../Server.h" #include "../Root.h" diff --git a/src/Bindings/WebPlugin.h b/src/Bindings/WebPlugin.h index 46bc0cd2d..9b825b918 100644 --- a/src/Bindings/WebPlugin.h +++ b/src/Bindings/WebPlugin.h @@ -1,7 +1,6 @@ #pragma once -struct lua_State; struct HTTPRequest; -- cgit v1.2.3 From 02db79d7251adb95ae84971674e68b9a2ff703ab Mon Sep 17 00:00:00 2001 From: worktycho Date: Fri, 26 Sep 2014 19:00:26 +0100 Subject: Update Plugin.h --- src/Bindings/Plugin.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Bindings') diff --git a/src/Bindings/Plugin.h b/src/Bindings/Plugin.h index 9c10a1d56..fb22dd33e 100644 --- a/src/Bindings/Plugin.h +++ b/src/Bindings/Plugin.h @@ -1,8 +1,6 @@ #pragma once -//#include "PluginManager.h" - #include "Defines.h" class cCommandOutputCallback; -- cgit v1.2.3