WIP Merging basic player to master #6
@ -263,6 +263,7 @@ void Corax::onNodeConnected(const W::String& name)
|
|||||||
cout << "connected node " << name.toString() << endl;
|
cout << "connected node " << name.toString() << endl;
|
||||||
if (name == u"Perturabo") {
|
if (name == u"Perturabo") {
|
||||||
commands->enableCommand(W::String(u"parseDirectory"), true);
|
commands->enableCommand(W::String(u"parseDirectory"), true);
|
||||||
|
commands->enableCommand(W::String(u"givePlayer"), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,6 +272,7 @@ void Corax::onNodeDisconnected(const W::String& name)
|
|||||||
cout << "disconnected node " << name.toString() << endl;
|
cout << "disconnected node " << name.toString() << endl;
|
||||||
if (name == u"Perturabo") {
|
if (name == u"Perturabo") {
|
||||||
commands->enableCommand(W::String(u"parseDirectory"), false);
|
commands->enableCommand(W::String(u"parseDirectory"), false);
|
||||||
|
commands->enableCommand(W::String(u"givePlayer"), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user