From 09ebda4d10ef004d196315b829e9c6740dd3d1ee Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 7 Aug 2013 22:39:40 +0200 Subject: Removed Squirrel. This compiles under Windows, but is untested in Linux. --- source/SquirrelCommandBinder.h | 51 ------------------------------------------ 1 file changed, 51 deletions(-) delete mode 100644 source/SquirrelCommandBinder.h (limited to 'source/SquirrelCommandBinder.h') diff --git a/source/SquirrelCommandBinder.h b/source/SquirrelCommandBinder.h deleted file mode 100644 index 49e6fd003..000000000 --- a/source/SquirrelCommandBinder.h +++ /dev/null @@ -1,51 +0,0 @@ - -#pragma once - - - - - -#ifdef USE_SQUIRREL - - - - - -#include - -class cPlugin; -class cPlayer; - -class cSquirrelCommandBinder -{ -public: - cSquirrelCommandBinder(); - ~cSquirrelCommandBinder(); - - bool HandleCommand( const std::string & a_Command, cPlayer* a_Player ); - - bool BindCommand( const std::string & a_Command, const std::string & a_Permission, cPlugin* a_Plugin, Sqrat::Function a_Callback); - - void ClearBindings(); - void RemoveBindingsForPlugin( cPlugin* a_Plugin ); -private: - struct BoundFunction - { - Sqrat::Function Callback; - cPlugin *Plugin; - std::string Permission; - }; - - typedef std::map< std::string, BoundFunction > CommandMap; - CommandMap m_BoundCommands; -}; - - - - - -#endif // USE_SQUIRREL - - - - -- cgit v1.2.3