wip
This commit is contained in:
@@ -18,7 +18,7 @@ function GamePanel(props) {
|
||||
setActiveSkill,
|
||||
setActiveCryp,
|
||||
selectSkillTarget,
|
||||
sendPlayerState,
|
||||
sendInstanceState,
|
||||
activeCryp,
|
||||
account,
|
||||
showLog,
|
||||
@@ -50,7 +50,7 @@ function GamePanel(props) {
|
||||
|
||||
function backClick() {
|
||||
quit();
|
||||
return sendPlayerState(game.instance);
|
||||
return sendInstanceState(game.instance);
|
||||
}
|
||||
|
||||
const header = (
|
||||
|
||||
@@ -23,9 +23,9 @@ const addState = connect(
|
||||
return false;
|
||||
}
|
||||
|
||||
function sendPlayerState(instanceId) {
|
||||
function sendInstanceState(instanceId) {
|
||||
if (!instanceId) return false;
|
||||
return ws.sendPlayerState(instanceId);
|
||||
return ws.sendInstanceState(instanceId);
|
||||
}
|
||||
|
||||
// intercept self casting skills
|
||||
@@ -41,7 +41,7 @@ const addState = connect(
|
||||
activeSkill,
|
||||
activeCryp,
|
||||
selectSkillTarget,
|
||||
sendPlayerState,
|
||||
sendInstanceState,
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ function Menu(args) {
|
||||
cryps,
|
||||
selectedCryps,
|
||||
setSelectedCryps,
|
||||
sendPlayerState,
|
||||
sendInstanceState,
|
||||
sendPlayerMmCrypsSet,
|
||||
sendInstanceJoin,
|
||||
sendCrypSpawn,
|
||||
@@ -40,7 +40,7 @@ function Menu(args) {
|
||||
<button
|
||||
className={`menu-instance-btn right ${globalInstance ? 'full' : ''}`}
|
||||
key={instance.id}
|
||||
onClick={() => sendPlayerState(instance)}>
|
||||
onClick={() => sendInstanceState(instance)}>
|
||||
{name}
|
||||
</button>
|
||||
);
|
||||
|
||||
@@ -25,15 +25,15 @@ const addState = connect(
|
||||
return ws.sendCrypSpawn(name);
|
||||
}
|
||||
|
||||
function sendPlayerState(instance) {
|
||||
return ws.sendPlayerState(instance.instance);
|
||||
function sendInstanceState(instance) {
|
||||
return ws.sendInstanceState(instance.instance);
|
||||
}
|
||||
|
||||
return {
|
||||
cryps,
|
||||
selectedCryps,
|
||||
sendInstanceJoin,
|
||||
sendPlayerState,
|
||||
sendInstanceState,
|
||||
sendCrypSpawn,
|
||||
sendPlayerMmCrypsSet,
|
||||
instances,
|
||||
|
||||
Reference in New Issue
Block a user