instance lists
This commit is contained in:
@@ -27,7 +27,7 @@ class Home extends Phaser.Scene {
|
||||
}
|
||||
|
||||
create() {
|
||||
this.registry.get('ws').sendAccountPlayers();
|
||||
this.registry.get('ws').sendAccountInstances();
|
||||
|
||||
this.registry.events.on('changedata', this.updateData, this);
|
||||
this.registry.events.on('setdata', this.updateData, this);
|
||||
|
||||
@@ -45,8 +45,8 @@ function createSocket(events) {
|
||||
send({ method: 'account_cryps', params: {} });
|
||||
}
|
||||
|
||||
function sendAccountPlayers() {
|
||||
send({ method: 'account_players', params: {} });
|
||||
function sendAccountInstances() {
|
||||
send({ method: 'account_instances', params: {} });
|
||||
}
|
||||
|
||||
function sendAccountZone() {
|
||||
@@ -168,9 +168,9 @@ function createSocket(events) {
|
||||
sendAccountCryps();
|
||||
}
|
||||
|
||||
function accountPlayerList(res) {
|
||||
const [struct, playerList] = res;
|
||||
events.setPlayerList(playerList);
|
||||
function accountInstanceList(res) {
|
||||
const [struct, instanceList] = res;
|
||||
events.setInstanceList(instanceList);
|
||||
}
|
||||
|
||||
function accountCryps(response) {
|
||||
@@ -221,7 +221,7 @@ function createSocket(events) {
|
||||
account_login: accountLogin,
|
||||
account_create: accountLogin,
|
||||
account_cryps: accountCryps,
|
||||
account_players: accountPlayerList,
|
||||
account_instances: accountInstanceList,
|
||||
instance_scores: instanceScores,
|
||||
zone_create: res => console.log(res),
|
||||
zone_state: zoneState,
|
||||
@@ -302,7 +302,7 @@ function createSocket(events) {
|
||||
sendAccountCreate,
|
||||
sendAccountDemo,
|
||||
sendAccountCryps,
|
||||
sendAccountPlayers,
|
||||
sendAccountInstances,
|
||||
sendAccountZone,
|
||||
sendGameState,
|
||||
sendGamePve,
|
||||
|
||||
Reference in New Issue
Block a user