fn names
This commit is contained in:
parent
abd35b8bef
commit
f295235b52
@ -15,7 +15,7 @@ const addState = connect(
|
|||||||
const { ws, constructs, team } = state;
|
const { ws, constructs, team } = state;
|
||||||
|
|
||||||
function sendConstructSpawn(name) {
|
function sendConstructSpawn(name) {
|
||||||
return ws.sendConstructSpawn(name);
|
return ws.sendMtxConstructBuy(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -46,10 +46,6 @@ function createSocket(events) {
|
|||||||
send(['AccountInstances', {}]);
|
send(['AccountInstances', {}]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendConstructSpawn() {
|
|
||||||
send(['MtxConstructBuy', {}]);
|
|
||||||
}
|
|
||||||
|
|
||||||
function sendGameState(id) {
|
function sendGameState(id) {
|
||||||
send(['GameState', { id }]);
|
send(['GameState', { id }]);
|
||||||
}
|
}
|
||||||
@ -135,6 +131,9 @@ function createSocket(events) {
|
|||||||
send(['MtxBuy', { mtx }]);
|
send(['MtxBuy', { mtx }]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sendMtxConstructBuy() {
|
||||||
|
send(['MtxConstructBuy', {}]);
|
||||||
|
}
|
||||||
// -------------
|
// -------------
|
||||||
// Incoming
|
// Incoming
|
||||||
// -------------
|
// -------------
|
||||||
@ -281,7 +280,6 @@ function createSocket(events) {
|
|||||||
return {
|
return {
|
||||||
sendAccountConstructs,
|
sendAccountConstructs,
|
||||||
sendAccountInstances,
|
sendAccountInstances,
|
||||||
sendConstructSpawn,
|
|
||||||
sendGameState,
|
sendGameState,
|
||||||
sendGameReady,
|
sendGameReady,
|
||||||
sendGameSkill,
|
sendGameSkill,
|
||||||
@ -300,6 +298,7 @@ function createSocket(events) {
|
|||||||
sendItemInfo,
|
sendItemInfo,
|
||||||
sendMtxApply,
|
sendMtxApply,
|
||||||
sendMtxBuy,
|
sendMtxBuy,
|
||||||
|
sendMtxConstructBuy,
|
||||||
connect,
|
connect,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,10 +27,10 @@ pub enum RpcMessage {
|
|||||||
AccountConstructs(Vec<Construct>),
|
AccountConstructs(Vec<Construct>),
|
||||||
AccountInstances(Vec<Instance>),
|
AccountInstances(Vec<Instance>),
|
||||||
AccountShop(mtx::Shop),
|
AccountShop(mtx::Shop),
|
||||||
|
ConstructSpawn(Construct),
|
||||||
GameState(Game),
|
GameState(Game),
|
||||||
ItemInfo(ItemInfoCtr),
|
ItemInfo(ItemInfoCtr),
|
||||||
|
|
||||||
ConstructSpawn(Construct),
|
|
||||||
OpenInstances(Vec<Instance>),
|
OpenInstances(Vec<Instance>),
|
||||||
InstanceState(Instance),
|
InstanceState(Instance),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user