Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "nge/Plugin.hpp"
- #include "nge/LogInterface.hpp"
- class HelloPlugin final : public nge::api::Plugin {
- public:
- HelloPlugin() {}
- void on_attach() override {
- display_message();
- }
- void display_message() {
- nge::LogInterface::log(nge::api::LogType::Debug,
- "Hello World from Hello Plugin!");
- }
- private:
- void memory_ready() override {
- PluginMem<HelloPlugin>::enable();
- }
- void memory_collect() override {
- PluginMem<HelloPlugin>::collect();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement