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