JoshDreamland icon

Untitled

JoshDreamland | PRO | 01/21/15 03:19:13 AM UTC | 0 ⭐ | 458 👁️ | Never ⏰ | []
C++ |

500 B

|

None

|

0 👍

/

0 👎

#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();
  }
};

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎