practice rpc

This commit is contained in:
ntr
2019-07-27 19:24:52 +10:00
parent fb84e1becf
commit 66223033b0
14 changed files with 286 additions and 309 deletions
+1
View File
@@ -26,6 +26,7 @@ html, body, #mnml {
/* stops inspector going skitz*/
overflow-x: hidden;
overflow-y: hidden;
}
@media (min-width: 1921px) {
+1 -1
View File
@@ -15,7 +15,7 @@ const addState = connect(
const { ws, constructs, team } = state;
function sendConstructSpawn(name) {
return ws.sendMtxConstructBuy(name);
return ws.sendMtxConstructSpawn(name);
}
return {
+3 -3
View File
@@ -131,8 +131,8 @@ function createSocket(events) {
send(['MtxBuy', { mtx }]);
}
function sendMtxConstructBuy() {
send(['MtxConstructBuy', {}]);
function sendMtxConstructSpawn() {
send(['MtxConstructSpawn', {}]);
}
// -------------
// Incoming
@@ -298,7 +298,7 @@ function createSocket(events) {
sendItemInfo,
sendMtxApply,
sendMtxBuy,
sendMtxConstructBuy,
sendMtxConstructSpawn,
connect,
};
}