/*----------------------------------------------- *本文件由代码生成器自动生成, *千万不要修改本文件的任何代码, *修改的的任何代码都会被覆盖掉! --------------------------------------------------*/ var async = require('asyncawait/async'); var await = require('asyncawait/await'); var PetHandler = function(socket){ this.socket = socket; } PetHandler.prototype.getPetInfoRequest = async(function(){ return await(this.socket.requestAsync('pet.petHandler.getPetInfoRequest',{})); }); PetHandler.prototype.getGourdInfoRequest = async(function(){ return await(this.socket.requestAsync('pet.petHandler.getGourdInfoRequest',{})); }); PetHandler.prototype.wateringRequest = async(function(wateringType){ return await(this.socket.requestAsync('pet.petHandler.wateringRequest',{wateringType:wateringType})); }); PetHandler.prototype.pikupGourdRequest = async(function(pos){ return await(this.socket.requestAsync('pet.petHandler.pikupGourdRequest',{pos:pos})); }); PetHandler.prototype.changeNameRequest = async(function(id,petName){ return await(this.socket.requestAsync('pet.petHandler.changeNameRequest',{id:id,petName:petName})); }); PetHandler.prototype.petFightRequest = async(function(id){ return await(this.socket.requestAsync('pet.petHandler.petFightRequest',{id:id})); }); PetHandler.prototype.petUpGradeRequest = async(function(id,seting,itemCode){ return await(this.socket.requestAsync('pet.petHandler.petUpGradeRequest',{id:id,seting:seting,itemCode:itemCode})); }); PetHandler.prototype.petUpOrderRequest = async(function(id,first,second){ return await(this.socket.requestAsync('pet.petHandler.petUpOrderRequest',{id:id,first:first,second:second})); }); PetHandler.prototype.petRestRequest = async(function(id){ return await(this.socket.requestAsync('pet.petHandler.petRestRequest',{id:id})); }); PetHandler.prototype.petDeletRequest = async(function(id){ return await(this.socket.requestAsync('pet.petHandler.petDeletRequest',{id:id})); }); PetHandler.prototype.petRefineRequest = async(function(id){ return await(this.socket.requestAsync('pet.petHandler.petRefineRequest',{id:id})); }); PetHandler.prototype.petRefineAttrRequest = async(function(id){ return await(this.socket.requestAsync('pet.petHandler.petRefineAttrRequest',{id:id})); }); PetHandler.prototype.petSkillLearnRequest = async(function(id,petSkillId){ return await(this.socket.requestAsync('pet.petHandler.petSkillLearnRequest',{id:id,petSkillId:petSkillId})); }); PetHandler.prototype.petSkillUpGradeRequest = async(function(id,petSkillId){ return await(this.socket.requestAsync('pet.petHandler.petSkillUpGradeRequest',{id:id,petSkillId:petSkillId})); }); PetHandler.prototype.petSetSkinRequest = async(function(id,petSkin){ return await(this.socket.requestAsync('pet.petHandler.petSetSkinRequest',{id:id,petSkin:petSkin})); }); PetHandler.prototype.petSkillLockRequest = async(function(id,petSkillId){ return await(this.socket.requestAsync('pet.petHandler.petSkillLockRequest',{id:id,petSkillId:petSkillId})); }); PetHandler.prototype.petSkillUnLockRequest = async(function(id,petSkillId){ return await(this.socket.requestAsync('pet.petHandler.petSkillUnLockRequest',{id:id,petSkillId:petSkillId})); }); PetHandler.prototype.queryOtherPlayerPetAttrRequest = async(function(otherPlayerId,otherPetId){ return await(this.socket.requestAsync('pet.petHandler.queryOtherPlayerPetAttrRequest',{otherPlayerId:otherPlayerId,otherPetId:otherPetId})); }); PetHandler.prototype.onAddPetPush = function(cb){ this.socket.on('pet.petPush.addPetPush',cb); } PetHandler.prototype.onUpdatePetPush = function(cb){ this.socket.on('pet.petPush.updatePetPush',cb); } PetHandler.prototype.onDeletePetPush = function(cb){ this.socket.on('pet.petPush.deletePetPush',cb); } module.exports = PetHandler;