1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /*-----------------------------------------------
- *本文件由代码生成器自动生成,
- *千万不要修改本文件的任何代码,
- *修改的的任何代码都会被覆盖掉!
- --------------------------------------------------*/
- var async = require('asyncawait/async');
- var await = require('asyncawait/await');
- var FollowerHandler = function(socket){
- this.socket = socket;
- }
- FollowerHandler.prototype.getFollowerInfoRequest = async(function(){
- return await(this.socket.requestAsync('follower.followerHandler.getFollowerInfoRequest',{}));
- });
- FollowerHandler.prototype.getBattleArrayRequest = async(function(){
- return await(this.socket.requestAsync('follower.followerHandler.getBattleArrayRequest',{}));
- });
- FollowerHandler.prototype.optionFollowerRequest = async(function(optionType,id,itemCode,itemCount,removeIds,followerName,followerSkin,arrayId,followerSkillId){
- return await(this.socket.requestAsync('follower.followerHandler.optionFollowerRequest',{optionType:optionType,id:id,itemCode:itemCode,itemCount:itemCount,removeIds:removeIds,followerName:followerName,followerSkin:followerSkin,arrayId:arrayId,followerSkillId:followerSkillId}));
- });
- FollowerHandler.prototype.optionBattleArrayPointRequest = async(function(optionType,pos,id){
- return await(this.socket.requestAsync('follower.followerHandler.optionBattleArrayPointRequest',{optionType:optionType,pos:pos,id:id}));
- });
- FollowerHandler.prototype.getGourdInfoRequest = async(function(){
- return await(this.socket.requestAsync('follower.followerHandler.getGourdInfoRequest',{}));
- });
- FollowerHandler.prototype.wateringRequest = async(function(wateringType){
- return await(this.socket.requestAsync('follower.followerHandler.wateringRequest',{wateringType:wateringType}));
- });
- FollowerHandler.prototype.pikupGourdRequest = async(function(pos){
- return await(this.socket.requestAsync('follower.followerHandler.pikupGourdRequest',{pos:pos}));
- });
- FollowerHandler.prototype.sexualRequest = async(function(){
- return await(this.socket.requestAsync('follower.followerHandler.sexualRequest',{}));
- });
- FollowerHandler.prototype.buyFollowerGridRequest = async(function(){
- return await(this.socket.requestAsync('follower.followerHandler.buyFollowerGridRequest',{}));
- });
- FollowerHandler.prototype.sexualConfirmApplyRequest = async(function(isAgree){
- return await(this.socket.requestAsync('follower.followerHandler.sexualConfirmApplyRequest',{isAgree:isAgree}));
- });
- FollowerHandler.prototype.receiveSexualFollowerRequest = async(function(){
- return await(this.socket.requestAsync('follower.followerHandler.receiveSexualFollowerRequest',{}));
- });
- FollowerHandler.prototype.onUpdateBattleArrayPush = function(cb){
- this.socket.on('follower.followerPush.updateBattleArrayPush',cb);
- }
- FollowerHandler.prototype.onConfirmPush = function(cb){
- this.socket.on('follower.followerPush.confirmPush',cb);
- }
- FollowerHandler.prototype.onDeletFollowerPush = function(cb){
- this.socket.on('follower.followerPush.deletFollowerPush',cb);
- }
- FollowerHandler.prototype.onAddFollowerPush = function(cb){
- this.socket.on('follower.followerPush.addFollowerPush',cb);
- }
- FollowerHandler.prototype.onChoosePush = function(cb){
- this.socket.on('follower.followerPush.choosePush',cb);
- }
- module.exports = FollowerHandler;
|