123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /*-----------------------------------------------
- *本文件由代码生成器自动生成,
- *千万不要修改本文件的任何代码,
- *修改的的任何代码都会被覆盖掉!
- --------------------------------------------------*/
- var async = require('asyncawait/async');
- var await = require('asyncawait/await');
- var BattleHandler = function(socket){
- this.socket = socket;
- }
- BattleHandler.prototype.throwPointRequest = async(function(id,server_id,isQuit,type,count){
- return await(this.socket.requestAsync('area.battleHandler.throwPointRequest',{id:id,server_id:server_id,isQuit:isQuit,type:type,count:count}));
- });
- BattleHandler.prototype.onThrowPointItemListPush = function(cb){
- this.socket.on('area.battlePush.throwPointItemListPush',cb);
- }
- BattleHandler.prototype.onThrowPointResultPush = function(cb){
- this.socket.on('area.battlePush.throwPointResultPush',cb);
- }
- BattleHandler.prototype.onBiddingInfoPush = function(cb){
- this.socket.on('area.battlePush.biddingInfoPush',cb);
- }
- BattleHandler.prototype.onFightLevelResultPush = function(cb){
- this.socket.on('area.battlePush.fightLevelResultPush',cb);
- }
- BattleHandler.prototype.onItemDropPush = function(cb){
- this.socket.on('area.battlePush.itemDropPush',cb);
- }
- BattleHandler.prototype.onSceneNamePush = function(cb){
- this.socket.on('area.battlePush.sceneNamePush',cb);
- }
- BattleHandler.prototype.onResourceDungeonResultPush = function(cb){
- this.socket.on('area.battlePush.resourceDungeonResultPush',cb);
- }
- module.exports = BattleHandler;
|