// Copyright: All Rights Reserved // Author: egametang@gmail.com (tanghai) #ifndef MONO_MONOINIT_H #define MONO_MONOINIT_H #include #include #include #include namespace Egametang { class MonoInit { private: MonoDomain *domain; std::unordered_map imageMap; public: MonoInit(const std::string& domainName); virtual ~MonoInit(); void LoadAssembly(const std::string& assemblyName); void InvokeMethod(const std::string& className, const std::string& functionName); void InvokeMain(const char *file, int argc, char** argv); }; } // namespace Egametang #endif // MONO_MONOINIT_H