35 lines
780 B
C++
35 lines
780 B
C++
#include "Archimedes.h"
|
|
|
|
#include "modules/ServerModule/ServerModule.h"
|
|
|
|
class ChatServerVoice : public Archimedes::Module {
|
|
|
|
public:
|
|
|
|
ChatServerVoice(Archimedes::App* a, void* h) : Module(a, h) {
|
|
|
|
name = "ChatServerVoice";
|
|
|
|
ServerModule* sm = new ServerModule(a, h);
|
|
deps[*sm] = sm;
|
|
sm->shouldHandleEvents(ServerModule::SMEventEnum::ConnectionStatusChanged | ServerModule::SMEventEnum::DataSent);
|
|
}
|
|
|
|
ChatServerVoice() { name = "ChatServerVoice"; }
|
|
|
|
~ChatServerVoice() {
|
|
if(app) {}
|
|
}
|
|
|
|
void onLoad();
|
|
|
|
//void run();
|
|
|
|
bool onEvent(const Archimedes::Event&);
|
|
};
|
|
|
|
#ifdef CHATSERVERVOICE_DYNAMIC
|
|
typedef ChatServerVoice mtype;
|
|
#include "endModule.h"
|
|
#endif
|