将私信方法改为统一的方法
This commit is contained in:
parent
1be298b173
commit
6bf63ff8c1
@ -36,7 +36,7 @@ Object.defineProperties(Room.prototype, {
|
|||||||
*/
|
*/
|
||||||
sSelectHero: {
|
sSelectHero: {
|
||||||
value: function (client: Client, data?: any) {
|
value: function (client: Client, data?: any) {
|
||||||
client && client.send('select_hero_s2c', data);
|
this.send(client, 'select_hero_s2c', data);
|
||||||
},
|
},
|
||||||
writable: true
|
writable: true
|
||||||
},
|
},
|
||||||
@ -56,7 +56,7 @@ Object.defineProperties(Room.prototype, {
|
|||||||
*/
|
*/
|
||||||
sDrawCard: {
|
sDrawCard: {
|
||||||
value: function (client: Client, data?: any) {
|
value: function (client: Client, data?: any) {
|
||||||
client && client.send('draw_card_s2c', data);
|
this.send(client, 'draw_card_s2c', data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -108,7 +108,7 @@ Object.defineProperties(Room.prototype, {
|
|||||||
*/
|
*/
|
||||||
sMsgQueue: {
|
sMsgQueue: {
|
||||||
value: function (client:Client, datas?: IMsg) {
|
value: function (client:Client, datas?: IMsg) {
|
||||||
client && client.send("msg_queue_s2c", datas);
|
this.send(client, "msg_queue_s2c", datas);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -151,7 +151,7 @@ Object.defineProperties(Room.prototype, {
|
|||||||
*/
|
*/
|
||||||
sStealCard: {
|
sStealCard: {
|
||||||
value: function (client: Client, data?: any) {
|
value: function (client: Client, data?: any) {
|
||||||
client && client.send("steal_card_s2c", data, {afterNextPatch: true});
|
this.send(client, "steal_card_s2c", data, {afterNextPatch: true});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -161,7 +161,7 @@ Object.defineProperties(Room.prototype, {
|
|||||||
*/
|
*/
|
||||||
bRemoveCard: {
|
bRemoveCard: {
|
||||||
value: function (client: Client, data?: any) {
|
value: function (client: Client, data?: any) {
|
||||||
client && client.send("remove_card_s2c", data);
|
this.send(client, "remove_card_s2c", data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@ -213,7 +213,7 @@ Object.defineProperties(Room.prototype, {
|
|||||||
|
|
||||||
sChangeCard: {
|
sChangeCard: {
|
||||||
value: function (client: Client, data?: any) {
|
value: function (client: Client, data?: any) {
|
||||||
client && client.send("change_card_s2c", data);
|
this.send(client, "change_card_s2c", data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user