| 156 | virtual ~EngineImplement() = default; |
| 157 | |
| 158 | bool construct(const void *data, size_t size, const char *message_name) { |
| 159 | context_ = std::make_shared<__native_engine_context>(); |
| 160 | if (!context_->construct(data, size, message_name)) { |
| 161 | return false; |
| 162 | } |
| 163 | |
| 164 | setup(); |
| 165 | return true; |
| 166 | } |
| 167 | |
| 168 | bool load(const std::string &file) { |
| 169 | auto data = load_file(file); |