item list
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user