From e4f7f97e6c79cda72dec7cd6fea5b85328b75894 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 3 Apr 2011 12:28:55 +0300 Subject: Removed lua stuff --- src/serverobject.h | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'src/serverobject.h') diff --git a/src/serverobject.h b/src/serverobject.h index 557d9b618..1d1888580 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -113,43 +113,5 @@ private: float m_age; }; -extern "C"{ -#include "lua.h" -#include "lualib.h" -#include "lauxlib.h" -} - -class LuaSAO : public ServerActiveObject -{ -public: - LuaSAO(ServerEnvironment *env, u16 id, v3f pos); - virtual ~LuaSAO(); - - u8 getType() const - { - return ACTIVEOBJECT_TYPE_LUA; - } - - virtual std::string getClientInitializationData(); - virtual std::string getServerInitializationData(); - - void initializeFromNothing(const std::string &script_name); - void initializeFromSave(const std::string &data); - - void loadScripts(const std::string &script_name); - - void step(float dtime, Queue &messages); - - /* - Stuff available for usage for the lua callbacks - */ - // This is moved onwards at the end of step() - Queue m_message_queue; - -private: - lua_State* L; - std::string m_script_name; -}; - #endif -- cgit v1.2.3