weird
This commit is contained in:
@@ -10,8 +10,6 @@ ChatClient::ChatClient(Archimedes::App* a, void* h) : Module(a, h) {
|
||||
|
||||
name = "ChatClient";
|
||||
|
||||
std::cout << name;
|
||||
|
||||
ClientModule* cm = new ClientModule(a, h);
|
||||
deps[*cm] = cm;
|
||||
cm->shouldHandleEvents(ClientModule::CMEventEnum::ConnectionStatusChanged | ClientModule::CMEventEnum::DataSent);
|
||||
@@ -20,7 +18,6 @@ ChatClient::ChatClient(Archimedes::App* a, void* h) : Module(a, h) {
|
||||
|
||||
deps[*im] = im;
|
||||
|
||||
std::cout << " created!\n";
|
||||
}
|
||||
|
||||
ChatClient::~ChatClient() {
|
||||
@@ -34,8 +31,6 @@ ChatClient::~ChatClient() {
|
||||
|
||||
void ChatClient::onLoad() {
|
||||
|
||||
std::cerr << "onLoad\n";
|
||||
|
||||
ImguiModule* im; { im = (ImguiModule*) moduleInstances[ImguiModule()]; }
|
||||
|
||||
if(!im) {
|
||||
@@ -55,8 +50,6 @@ void ChatClient::onLoad() {
|
||||
|
||||
void ChatClient::run() {
|
||||
|
||||
std::cerr << "run\n";
|
||||
|
||||
static ClientModule* cm; { cm = (ClientModule*) moduleInstances[ClientModule()]; }
|
||||
|
||||
if(!cm) {
|
||||
@@ -105,10 +98,8 @@ void ChatClient::run() {
|
||||
|
||||
bool ChatClient::onEvent(const Archimedes::Event& event) {
|
||||
|
||||
std::cerr << "onEvent: " << (std::string) event << std::endl;
|
||||
unsigned int type = app->getEventType(event);
|
||||
|
||||
|
||||
/*if(type == app->getEventType("DataSentEvent")) {
|
||||
//we did this?
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user