123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339 |
- /*-----------------------------------------------
- *本文件由代码生成器自动生成,
- *千万不要修改本文件的任何代码,
- *修改的的任何代码都会被覆盖掉!
- --------------------------------------------------*/
- var util = require('util');
- var Socket = require('Xmds-csharp').Socket;
- var BagHandler = require('./bagHandler');
- var BattleHandler = require('./battleHandler');
- var DailyActivityHandler = require('./dailyActivityHandler');
- var EquipHandler = require('./equipHandler');
- var GuildMagicMatrixHandler = require('./guildMagicMatrixHandler');
- var ItemHandler = require('./itemHandler');
- var MessageHandler = require('./messageHandler');
- var NpcHandler = require('./npcHandler');
- var PetNewHandler = require('./petNewHandler');
- var PickLotusAreaHandler = require('./pickLotusAreaHandler');
- var PlayerHandler = require('./playerHandler');
- var PlayerHandlerExt = require('./playerHandlerExt');
- var PrepaidHandler = require('./prepaidHandler');
- var ResourceHandler = require('./resourceHandler');
- var SkillHandler = require('./skillHandler');
- var SkillKeysHandler = require('./skillKeysHandler');
- var SkillStrongHandler = require('./skillStrongHandler');
- var TaskHandler = require('./taskHandler');
- var TeamHandler = require('./teamHandler');
- var EntryHandler = require('./entryHandler');
- var RoleHandler = require('./roleHandler');
- var OpenArtifactHandler = require('./openArtifactHandler');
- var PetHandler = require('./petHandler');
- var ZhanYaoHandler = require('./zhanYaoHandler');
- var GameSocket = function(protoPath){
- Socket.call(this,protoPath);
- this.bagHandler = new BagHandler(this);
- this.battleHandler = new BattleHandler(this);
- this.dailyActivityHandler = new DailyActivityHandler(this);
- this.equipHandler = new EquipHandler(this);
- this.guildMagicMatrixHandler = new GuildMagicMatrixHandler(this);
- this.itemHandler = new ItemHandler(this);
- this.messageHandler = new MessageHandler(this);
- this.npcHandler = new NpcHandler(this);
- this.petNewHandler = new PetNewHandler(this);
- this.pickLotusAreaHandler = new PickLotusAreaHandler(this);
- this.playerHandler = new PlayerHandler(this);
- this.playerHandlerExt = new PlayerHandlerExt(this);
- this.prepaidHandler = new PrepaidHandler(this);
- this.resourceHandler = new ResourceHandler(this);
- this.skillHandler = new SkillHandler(this);
- this.skillKeysHandler = new SkillKeysHandler(this);
- this.skillStrongHandler = new SkillStrongHandler(this);
- this.taskHandler = new TaskHandler(this);
- this.teamHandler = new TeamHandler(this);
- this.entryHandler = new EntryHandler(this);
- this.roleHandler = new RoleHandler(this);
- this.openArtifactHandler = new OpenArtifactHandler(this);
- this.petHandler = new PetHandler(this);
- this.zhanYaoHandler = new ZhanYaoHandler(this);
- }
- util.inherits(GameSocket, Socket);
- GameSocket.prototype.onBagItemUpdatePush = function(cb){
- this.on('area.bagPush.bagItemUpdatePush',cb);
- }
- GameSocket.prototype.onBagNewItemPush = function(cb){
- this.on('area.bagPush.bagNewItemPush',cb);
- }
- GameSocket.prototype.onBagNewEquipPush = function(cb){
- this.on('area.bagPush.bagNewEquipPush',cb);
- }
- GameSocket.prototype.onBagGridFullPush = function(cb){
- this.on('area.bagPush.bagGridFullPush',cb);
- }
- GameSocket.prototype.onBagGridNumPush = function(cb){
- this.on('area.bagPush.bagGridNumPush',cb);
- }
- GameSocket.prototype.onBagNewItemFromResFubenPush = function(cb){
- this.on('area.bagPush.bagNewItemFromResFubenPush',cb);
- }
- GameSocket.prototype.onThrowPointItemListPush = function(cb){
- this.on('area.battlePush.throwPointItemListPush',cb);
- }
- GameSocket.prototype.onThrowPointResultPush = function(cb){
- this.on('area.battlePush.throwPointResultPush',cb);
- }
- GameSocket.prototype.onBiddingInfoPush = function(cb){
- this.on('area.battlePush.biddingInfoPush',cb);
- }
- GameSocket.prototype.onFightLevelResultPush = function(cb){
- this.on('area.battlePush.fightLevelResultPush',cb);
- }
- GameSocket.prototype.onItemDropPush = function(cb){
- this.on('area.battlePush.itemDropPush',cb);
- }
- GameSocket.prototype.onSceneNamePush = function(cb){
- this.on('area.battlePush.sceneNamePush',cb);
- }
- GameSocket.prototype.onResourceDungeonResultPush = function(cb){
- this.on('area.battlePush.resourceDungeonResultPush',cb);
- }
- GameSocket.prototype.onDailyActivityScheduleShowPush = function(cb){
- this.on('area.dailyActivityPush.dailyActivityScheduleShowPush',cb);
- }
- GameSocket.prototype.onEquipmentSimplePush = function(cb){
- this.on('area.equipPush.equipmentSimplePush',cb);
- }
- GameSocket.prototype.onEquipInheritPush = function(cb){
- this.on('area.equipPush.equipInheritPush',cb);
- }
- GameSocket.prototype.onEquipStrengthPosPush = function(cb){
- this.on('area.equipPush.equipStrengthPosPush',cb);
- }
- GameSocket.prototype.onOnMagicMatrixActionPush = function(cb){
- this.on('area.guildMagicMatrixPush.onMagicMatrixActionPush',cb);
- }
- GameSocket.prototype.onFishItemPush = function(cb){
- this.on('area.itemPush.fishItemPush',cb);
- }
- GameSocket.prototype.onCountItemChangePush = function(cb){
- this.on('area.itemPush.countItemChangePush',cb);
- }
- GameSocket.prototype.onItemDetailPush = function(cb){
- this.on('area.itemPush.itemDetailPush',cb);
- }
- GameSocket.prototype.onRewardItemPush = function(cb){
- this.on('area.itemPush.rewardItemPush',cb);
- }
- GameSocket.prototype.onOnMessageAddPush = function(cb){
- this.on('area.messagePush.onMessageAddPush',cb);
- }
- GameSocket.prototype.onOnNewPetDetailPush = function(cb){
- this.on('area.petNewPush.onNewPetDetailPush',cb);
- }
- GameSocket.prototype.onPetExpUpdatePush = function(cb){
- this.on('area.petNewPush.petExpUpdatePush',cb);
- }
- GameSocket.prototype.onPetInfoUpdatePush = function(cb){
- this.on('area.petNewPush.petInfoUpdatePush',cb);
- }
- GameSocket.prototype.onCaiLianEndPush = function(cb){
- this.on('area.pickLotusAreaPush.caiLianEndPush',cb);
- }
- GameSocket.prototype.onKillbossInfoPush = function(cb){
- this.on('area.pickLotusAreaPush.killbossInfoPush',cb);
- }
- GameSocket.prototype.onClientConfigPush = function(cb){
- this.on('area.playerPush.clientConfigPush',cb);
- }
- GameSocket.prototype.onBattleEventPush = function(cb){
- this.on('area.playerPush.battleEventPush',cb);
- }
- GameSocket.prototype.onBattleClearPush = function(cb){
- this.on('area.playerPush.battleClearPush',cb);
- }
- GameSocket.prototype.onOnSuperScriptPush = function(cb){
- this.on('area.playerPush.onSuperScriptPush',cb);
- }
- GameSocket.prototype.onChangeAreaPush = function(cb){
- this.on('area.playerPush.changeAreaPush',cb);
- }
- GameSocket.prototype.onPlayerDynamicPush = function(cb){
- this.on('area.playerPush.playerDynamicPush',cb);
- }
- GameSocket.prototype.onPlayerRelivePush = function(cb){
- this.on('area.playerPush.playerRelivePush',cb);
- }
- GameSocket.prototype.onPlayerSaverRebirthPush = function(cb){
- this.on('area.playerPush.playerSaverRebirthPush',cb);
- }
- GameSocket.prototype.onSimulateDropPush = function(cb){
- this.on('area.playerPush.simulateDropPush',cb);
- }
- GameSocket.prototype.onKickPlayerPush = function(cb){
- this.on('area.playerPush.kickPlayerPush',cb);
- }
- GameSocket.prototype.onSuitPropertyUpPush = function(cb){
- this.on('area.playerPush.suitPropertyUpPush',cb);
- }
- GameSocket.prototype.onCommonPropertyPush = function(cb){
- this.on('area.playerPush.commonPropertyPush',cb);
- }
- GameSocket.prototype.onBuffPropertyPush = function(cb){
- this.on('area.playerPush.buffPropertyPush',cb);
- }
- GameSocket.prototype.onPlayerBattleAttributePush = function(cb){
- this.on('area.playerPush.playerBattleAttributePush',cb);
- }
- GameSocket.prototype.onPayGiftStatePush = function(cb){
- this.on('area.playerPush.payGiftStatePush',cb);
- }
- GameSocket.prototype.onPlayerNoticeMsgPush = function(cb){
- this.on('area.playerPush.playerNoticeMsgPush',cb);
- }
- GameSocket.prototype.onPlayerSameMapTransPush = function(cb){
- this.on('area.playerPush.playerSameMapTransPush',cb);
- }
- GameSocket.prototype.onRefrushNewDayPush = function(cb){
- this.on('area.playerPushExt.refrushNewDayPush',cb);
- }
- GameSocket.prototype.onPaySuccessPush = function(cb){
- this.on('area.prepaidHandler.paySuccessPush',cb);
- }
- GameSocket.prototype.onSkillUpdatePush = function(cb){
- this.on('area.skillPush.skillUpdatePush',cb);
- }
- GameSocket.prototype.onSkillKeyUpdatePush = function(cb){
- this.on('area.skillKeysPush.skillKeyUpdatePush',cb);
- }
- GameSocket.prototype.onTaskUpdatePush = function(cb){
- this.on('area.taskPush.taskUpdatePush',cb);
- }
- GameSocket.prototype.onTaskAutoPush = function(cb){
- this.on('area.taskPush.taskAutoPush',cb);
- }
- GameSocket.prototype.onTreasureScenePointPush = function(cb){
- this.on('area.taskPush.treasureScenePointPush',cb);
- }
- GameSocket.prototype.onLoopResultPush = function(cb){
- this.on('area.taskPush.loopResultPush',cb);
- }
- GameSocket.prototype.onGuideTaskPush = function(cb){
- this.on('area.taskPush.guideTaskPush',cb);
- }
- GameSocket.prototype.onOnSummonTeamPush = function(cb){
- this.on('area.teamPush.onSummonTeamPush',cb);
- }
- GameSocket.prototype.onOnTeamUpdatePush = function(cb){
- this.on('area.teamPush.onTeamUpdatePush',cb);
- }
- GameSocket.prototype.onOnTeamMemberUpdatePush = function(cb){
- this.on('area.teamPush.onTeamMemberUpdatePush',cb);
- }
- GameSocket.prototype.onOnTeamTargetPush = function(cb){
- this.on('area.teamPush.onTeamTargetPush',cb);
- }
- GameSocket.prototype.onOnAcrossTeamInfoPush = function(cb){
- this.on('area.teamPush.onAcrossTeamInfoPush',cb);
- }
- GameSocket.prototype.onOnTeamMumberHurtPush = function(cb){
- this.on('area.teamPush.onTeamMumberHurtPush',cb);
- }
- GameSocket.prototype.onOnAppliedPlayersPush = function(cb){
- this.on('area.teamPush.onAppliedPlayersPush',cb);
- }
- GameSocket.prototype.onLoginQueuePush = function(cb){
- this.on('connector.entryPush.loginQueuePush',cb);
- }
- GameSocket.prototype.onHudBuffListPush = function(cb){
- this.on('connector.entryPush.hudBuffListPush',cb);
- }
- GameSocket.prototype.onIsOpenArtifactPush = function(cb){
- this.on('openArtifact.openArtifactPush.isOpenArtifactPush',cb);
- }
- GameSocket.prototype.onAddPetPush = function(cb){
- this.on('pet.petPush.addPetPush',cb);
- }
- GameSocket.prototype.onUpdatePetPush = function(cb){
- this.on('pet.petPush.updatePetPush',cb);
- }
- GameSocket.prototype.onDeletePetPush = function(cb){
- this.on('pet.petPush.deletePetPush',cb);
- }
- GameSocket.prototype.onPlayerYaoQiSharePush = function(cb){
- this.on('zhanyao.zhanYaoPush.playerYaoQiSharePush',cb);
- }
- module.exports = GameSocket;
|