#include "interface/module.h" #include "interface/server.h" #include "interface/event.h" #include "interface/mutex.h" #include "test1/include/api.h" #include "network/include/api.h" #include //#include using interface::Event; namespace test1 { struct Module: public interface::Module { interface::Mutex m_interface_mutex; interface::Server *m_server; Event::Type m_EventType_test1_thing; Module(interface::Server *server): interface::Module("test1"), m_server(server), m_EventType_test1_thing(Event::t("test1:thing")) { std::cout<<"test1 construct"<sub_event(this, Event::t("core:start")); m_server->sub_event(this, m_EventType_test1_thing); m_server->sub_event(this, Event::t("network:new_client")); } ~Module() { std::cout<<"test1 destruct"<