2016-01-12 03:41:44 +00:00
|
|
|
#ifndef PLUGINSYSTEM3_LANGNATIVE_HPP
|
|
|
|
#define PLUGINSYSTEM3_LANGNATIVE_HPP
|
|
|
|
|
|
|
|
|
|
|
|
#include <Script/Language.hpp>
|
|
|
|
#include <Script/SystemInterface.hpp>
|
|
|
|
|
|
|
|
class LangNative : public Language
|
|
|
|
{
|
2016-08-02 10:10:06 +00:00
|
|
|
lib_t lib;
|
2016-01-12 03:41:44 +00:00
|
|
|
public:
|
2016-08-02 10:10:06 +00:00
|
|
|
virtual lib_t GetInterface() override;
|
2016-01-12 03:41:44 +00:00
|
|
|
LangNative();
|
|
|
|
~LangNative();
|
|
|
|
virtual void LoadProgram(const char *filename) override;
|
|
|
|
virtual int FreeProgram() override;
|
|
|
|
virtual bool IsCallbackPresent(const char *name) override;
|
|
|
|
virtual boost::any Call(const char *name, const char *argl, int buf, ...) override;
|
|
|
|
virtual boost::any Call(const char *name, const char *argl, const std::vector<boost::any> &args) override;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //PLUGINSYSTEM3_LANGNATIVE_HPP
|