rename ability

This commit is contained in:
ntr
2018-10-20 16:29:17 +11:00
parent 110616c22a
commit f8361de6df
5 changed files with 41 additions and 32 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const Game = require('./game');
const addState = connect(
function receiveState(state) {
const { game } = state;
const { game, account } = state;
// function sendCombatPve(crypId) {
// return ws.sendCombatPve(crypId);
// }
+10 -2
View File
@@ -1,9 +1,17 @@
const preact = require('preact');
function GamePanel({ game }) {
function GamePanel({ game, sendGameAbility, account }) {
if (!game) return <div>...</div>;
return (
<div>{JSON.stringify(game)}</div>
<div>
<div>{JSON.stringify(game)}</div>
<button
className="button is-dark is-fullwidth"
type="submit"
onClick={() => sendCrypSpawn(name)}>
Spawn 👾
</button>
</div>
)
// return (
// <div className="">