Changeset 7284 for code/trunk/src/libraries/core/LuaState.h
- Timestamp:
- Aug 31, 2010, 3:37:40 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/LuaState.h
r7266 r7284 40 40 #include <loki/ScopeGuard.h> 41 41 42 #include "Functor.h"43 42 #include "ToluaInterface.h" 44 43 45 44 namespace orxonox // tolua_export 46 45 { // tolua_export 47 class Functor; // tolua_export46 class LuaFunctor; // tolua_export 48 47 49 //! Functor subclass that simply executes code with 0 arguments.50 class _CoreExport LuaFunctor : public Functor48 //! callback class that executes lua code 49 class _CoreExport LuaFunctor 51 50 { 52 51 public: 53 52 LuaFunctor(const std::string& code, LuaState* luaState); 54 void operator()(const MultiType& param1 = MT_Type::Null, const MultiType& param2 = MT_Type::Null, const MultiType& param3 = MT_Type::Null, const MultiType& param4 = MT_Type::Null, const MultiType& param5 = MT_Type::Null); 55 void evaluateParam(unsigned int index, MultiType& param) const {} 53 void operator()(); 56 54 57 55 private: … … 91 89 const shared_ptr<ResourceInfo>& getDefaultResourceInfo() { return this->sourceFileInfo_; } 92 90 93 Functor* createLuaFunctor(const std::string& code) { return new LuaFunctor(code, this); } // tolua_export91 LuaFunctor* createLuaFunctor(const std::string& code) { return new LuaFunctor(code, this); } // tolua_export 94 92 //! Tells about whether IOConsole was activated. The Lua debugger only works with a normal console. 95 93 bool usingIOConsole() const; // tolua_export
Note: See TracChangeset
for help on using the changeset viewer.