practice rpc
This commit is contained in:
@@ -26,6 +26,7 @@ html, body, #mnml {
|
||||
|
||||
/* stops inspector going skitz*/
|
||||
overflow-x: hidden;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
@media (min-width: 1921px) {
|
||||
|
||||
@@ -15,7 +15,7 @@ const addState = connect(
|
||||
const { ws, constructs, team } = state;
|
||||
|
||||
function sendConstructSpawn(name) {
|
||||
return ws.sendMtxConstructBuy(name);
|
||||
return ws.sendMtxConstructSpawn(name);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user