restructure modules
This commit is contained in:
15
modules/examples/Print/src/Print.cpp
Normal file
15
modules/examples/Print/src/Print.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "Print.h"
|
||||
|
||||
Print::Print(void* h, Archimedes::App* a) : Archimedes::Module(h, a) {
|
||||
name = "Print";
|
||||
}
|
||||
|
||||
Print::~Print() {
|
||||
std::cout << "Print Destroyed!\n";
|
||||
}
|
||||
|
||||
void Print::run() {
|
||||
std::cout << "Print lib loaded and run!\n";
|
||||
|
||||
app->stopModule(self);
|
||||
}
|
||||
16
modules/examples/Print/src/Print.h
Normal file
16
modules/examples/Print/src/Print.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "Archimedes.h"
|
||||
|
||||
class Print : public Archimedes::Module {
|
||||
|
||||
public:
|
||||
Print(void*, Archimedes::App*);
|
||||
~Print();
|
||||
void run();
|
||||
void onLoad() {}
|
||||
|
||||
};
|
||||
|
||||
#ifndef PRINT_STATIC
|
||||
#define MODULE_TYPE Print
|
||||
#include "endModule.h"
|
||||
#endif
|
||||
Reference in New Issue
Block a user