item list

This commit is contained in:
ntr
2018-10-14 23:10:39 +11:00
parent f5cd913adf
commit b83ab923c4
10 changed files with 346 additions and 90 deletions
+6
View File
@@ -59,6 +59,7 @@ function createSocket(store) {
store.dispatch(actions.setAccount(login));
// send({ method: 'cryp_spawn', params: { name: 'muji' } });
send({ method: 'account_cryps', params: {} });
send({ method: 'item_list', params: {}});
console.log(account);
}
@@ -83,6 +84,10 @@ function createSocket(store) {
console.log('got a new battle', battle);
}
function itemList(response) {
const [structName, items] = response;
console.log('got my items', items);
}
// -------------
// Outgoing
@@ -113,6 +118,7 @@ function createSocket(store) {
account_login: accountLogin,
account_create: accountLogin,
account_cryps: accountCryps,
item_list: itemList,
};
// decodes the cbor and