protobuf:修改下发
This commit is contained in:
@@ -103,7 +103,7 @@ app.configure(ALL_ENVS, 'connector', function () {
|
||||
connector: pinus.connectors.hybridconnector,
|
||||
heartbeat: 60,
|
||||
useDict: false,
|
||||
useProtobuf: false
|
||||
useProtobuf: true
|
||||
});
|
||||
|
||||
app.set('protobufConfig', {
|
||||
|
||||
@@ -1,174 +1,2 @@
|
||||
module.exports = {
|
||||
// "chat.chatHandler.send": {
|
||||
// "required string content": 1,
|
||||
// "required string target": 2,
|
||||
// "required string rid": 3,
|
||||
// "required string from": 4,
|
||||
// },
|
||||
// "chat.chatHandler.send2": {
|
||||
// "required string rid": 1,
|
||||
// "required string content": 2,
|
||||
// "required string from": 3,
|
||||
// "required string target": 4
|
||||
// },
|
||||
// "role.equipHandler.composeEquip": {
|
||||
// "required uInt32 hid": 1,
|
||||
// "required uInt32 ePlaceId": 2
|
||||
// },
|
||||
// "role.equipHandler.decomposeEquip": {
|
||||
// "repeated uInt32 originalEquip": 1
|
||||
// },
|
||||
// "role.equipHandler.putOnOrOff": {
|
||||
// "required uInt32 eid": 1,
|
||||
// "required uInt32 hid": 2,
|
||||
// "required uInt32 type": 3
|
||||
// },
|
||||
// "role.equipHandler.strengthenAll": {
|
||||
// "required uInt32 hid": 1,
|
||||
// "required uInt32 lv": 2
|
||||
// },
|
||||
// // "role.equipHandler.refine": {
|
||||
// // "message Material":{
|
||||
// // "required uInt32 id": 1,
|
||||
// // "required uInt32 count": 2
|
||||
// // },
|
||||
// // "required uInt32 hid": 1,
|
||||
// // "required uInt32 ePlaceId": 2,
|
||||
// // "repeated Material material": 3
|
||||
// // },
|
||||
// "role.equipHandler.reStrengthen": {
|
||||
// "required uInt32 eid": 1
|
||||
// },
|
||||
// "role.equipHandler.digHole": {
|
||||
// "required uInt32 eid": 1,
|
||||
// "required uInt32 id": 2
|
||||
// },
|
||||
// "role.equipHandler.fillHole": {
|
||||
// "required uInt32 eid": 1,
|
||||
// "required uInt32 id": 2,
|
||||
// "required uInt32 jewel": 3
|
||||
// },
|
||||
// "role.equipHandler.composeJewel": {
|
||||
// "message Consumes":{
|
||||
// "required uInt32 id": 1,
|
||||
// "required uInt32 count": 2
|
||||
// },
|
||||
// "required uInt32 jewel": 1,
|
||||
// "required uInt32 count": 2,
|
||||
// "required uInt32 type": 3,
|
||||
// "repeated Consumes consumes": 4
|
||||
// },
|
||||
// "role.equipHandler.putOffHole": {
|
||||
// "required uInt32 eid": 1,
|
||||
// "required uInt32 id": 2
|
||||
// },
|
||||
// "role.equipHandler.composeAndPurchaseJewel": {
|
||||
// "message Consumes":{
|
||||
// "required uInt32 id": 1,
|
||||
// "required uInt32 count": 2
|
||||
// },
|
||||
// "required uInt32 jewel": 1,
|
||||
// "required uInt32 count": 2,
|
||||
// "repeated Consumes consumes": 3,
|
||||
// "repeated Consumes purchaseGoods": 4
|
||||
// },
|
||||
// "role.equipHandler.purchaseGoods": {
|
||||
// "message PurchaseGoods": {
|
||||
// "required uInt32 id": 1,
|
||||
// "required uInt32 count": 2
|
||||
// },
|
||||
// "repeated PurchaseGoods purchaseGoods": 1
|
||||
// },
|
||||
// "role.equipHandler.composeNextLevelJewel": {
|
||||
// "required uInt32 jewel": 1,
|
||||
// "required uInt32 count": 2,
|
||||
// "required uInt32 eid": 3,
|
||||
// "required uInt32 id": 4
|
||||
// },
|
||||
|
||||
// "role.heroHandler.compose": {
|
||||
// "required uInt32 hid": 1
|
||||
// },
|
||||
// "role.heroHandler.lvUp": {
|
||||
// "message Material": {
|
||||
// "required uInt32 id": 1,
|
||||
// "required uInt32 count": 2
|
||||
// },
|
||||
// "required uInt32 hid": 1,
|
||||
// "required uInt32 type": 2,
|
||||
// "repeated Material material": 3
|
||||
// },
|
||||
// // "role.heroHandler.starUp": {
|
||||
// // "required uInt32 hid": 1,
|
||||
// // "required uInt32 star": 2,
|
||||
// // "required uInt32 starStage": 3
|
||||
// // },
|
||||
// // "role.heroHandler.wakeUp": {
|
||||
// // "required uInt32 hid": 1,
|
||||
// // "required uInt32 colorStar": 2,
|
||||
// // "required uInt32 colorStarStage": 3
|
||||
// // },
|
||||
// "role.heroHandler.qualityUp": {
|
||||
// "required uInt32 hid": 1,
|
||||
// "required uInt32 quality": 2
|
||||
// },
|
||||
// // "role.heroHandler.heroJobTrain": {
|
||||
// // "required uInt32 hid": 1
|
||||
// // },
|
||||
// "role.heroHandler.heroJobStageUp": {
|
||||
// "required uInt32 hid": 1
|
||||
// },
|
||||
// "role.heroHandler.heroConectionActivate": {
|
||||
// "required uInt32 shipId": 1
|
||||
// },
|
||||
// "role.heroHandler.heroGiveFavor": {
|
||||
// "required uInt32 hid": 1,
|
||||
// "required uInt32 type": 2,
|
||||
// },
|
||||
// "role.heroHandler.heroWearSkin": {
|
||||
// "required uInt32 id": 1
|
||||
// },
|
||||
// "role.heroHandler.changeSchoolHero": {
|
||||
// "required uInt32 schoolId": 1,
|
||||
// "required uInt32 positionId": 2,
|
||||
// "required uInt32 hid": 3
|
||||
// },
|
||||
// "role.heroHandler.unlockSchoolPosition": {
|
||||
// "required uInt32 schoolId": 1,
|
||||
// "required uInt32 positionId": 2
|
||||
// },
|
||||
// "role.heroHandler.activeHeroScroll": {
|
||||
// "required uInt32 hid": 1
|
||||
// },
|
||||
// "role.heroHandler.roleTeraphStrengthen": {
|
||||
// "required uInt32 id": 1,
|
||||
// "required uInt32 count": 2
|
||||
// },
|
||||
// "role.heroHandler.roleTeraphQualityUp": {
|
||||
// "required uInt32 id": 1
|
||||
// },
|
||||
// // "role.roleHandler.initRole": {
|
||||
// // "required string roleName": 1
|
||||
// // },
|
||||
// // "battle.normalBattleHandler.getBattleList": {
|
||||
// // "repeated uInt32 types": 1
|
||||
// // },
|
||||
// // "battle.normalBattleHandler.checkBattle": {
|
||||
// // "required uInt32 battleId": 1,
|
||||
// // "repeated uInt32 heroes": 2
|
||||
// // },
|
||||
// // "battle.normalBattleHandler.battleEnd": {
|
||||
// // "required uInt32 battleId": 1,
|
||||
// // "required string battleCode": 2,
|
||||
// // "required uInt32 isSuccess": 3,
|
||||
// // "repeated uInt32 heroes": 4,
|
||||
// // "repeated uInt32 stars": 5
|
||||
// // },
|
||||
// "battle.dungeonBattleHandler.buyNum": {
|
||||
// "required uInt32 count": 1
|
||||
// },
|
||||
// "battle.dailyBattleHandler.buyNum": {
|
||||
// "required uInt32 type": 1,
|
||||
// "required uInt32 count": 2
|
||||
// }
|
||||
}
|
||||
@@ -1,173 +1 @@
|
||||
module.exports = {
|
||||
// "battle.normalBattleHandler.getBattleList": {
|
||||
// 'message Data': {
|
||||
// 'message BattleList': {
|
||||
// 'required uInt32 battleId': 1,
|
||||
// 'required uInt32 status': 2,
|
||||
// 'required uInt32 star': 3,
|
||||
// 'repeated uInt32 stars': 4,
|
||||
// 'optional string scriptBefore': 5,
|
||||
// 'optional string scriptAfter': 6,
|
||||
// },
|
||||
// 'repeated BattleList list': 1
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// },
|
||||
// "battle.normalBattleHandler.checkBattle": {
|
||||
// 'message Data': {
|
||||
// "optional uInt32 battleId": 1,
|
||||
// "optional string battleCode": 2,
|
||||
// "optional uInt32 status": 3,
|
||||
// "message DailyNum": {
|
||||
// "optional uInt32 type": 1,
|
||||
// "optional uInt32 count": 2,
|
||||
// "optional uInt32 buyCount": 3
|
||||
// },
|
||||
// "optional DailyNum dailyNum": 4,
|
||||
// "message TowerData": {
|
||||
// "repeated uInt32 heroes": 1,
|
||||
// "message WarStatus": {
|
||||
// "required uInt32 warId": 1,
|
||||
// "required boolean status": 2
|
||||
// },
|
||||
// "optional WarStatus warStatus": 2
|
||||
// },
|
||||
// "optional TowerData towerData": 5,
|
||||
// "message DungeonNum": {
|
||||
// "optional uInt32 battleCount": 1,
|
||||
// "optional uInt32 buyCount": 2
|
||||
// },
|
||||
// "optional DungeonNum dungeonNum": 6
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'optional Data data': 3
|
||||
// },
|
||||
// 'onChat': {
|
||||
// 'required string msg': 1,
|
||||
// 'required string from': 2,
|
||||
// 'required string target': 3
|
||||
// },
|
||||
// 'onItemUpdate': {
|
||||
// 'message Data': {
|
||||
// "message Good": {
|
||||
// 'required uInt32 id': 1,
|
||||
// 'required uInt32 count': 2,
|
||||
// 'required uInt32 reason': 3,
|
||||
// 'required sInt32 inc': 4,
|
||||
// },
|
||||
// 'repeated Good goods': 1,
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// },
|
||||
// 'onPlayerCeUpdate': {
|
||||
// 'message Data': {
|
||||
// "message Hero": {
|
||||
// 'required uInt32 hid': 1,
|
||||
// 'required uInt32 ce': 2,
|
||||
// 'required sInt32 incHeroCe': 3,
|
||||
// },
|
||||
// 'required sInt32 ce': 1,
|
||||
// 'repeated Hero heros': 2,
|
||||
// 'required uInt32 topLineupCe': 3
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// },
|
||||
// 'onPlayerDataChange': {
|
||||
// 'message Data': {
|
||||
// 'optional uInt32 coin': 1,
|
||||
// 'optional uInt32 giftGold': 2,
|
||||
// 'optional uInt32 gold': 3,
|
||||
// 'optional uInt32 ap': 4,
|
||||
// 'optional uInt32 totalPay': 5,
|
||||
// 'optional uInt32 totalCost': 6,
|
||||
// 'optional string roleName': 7,
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// },
|
||||
// "onPushCurrentTime": {
|
||||
// "message Data": {
|
||||
// "required uInt32": 1
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// },
|
||||
// 'onHeroSkinChange': {
|
||||
// 'message Data': {
|
||||
// "message SkinInfo": {
|
||||
// "message Skin": {
|
||||
// 'required uInt32 id': 1,
|
||||
// 'required boolean enable': 2
|
||||
// },
|
||||
// 'repeated Skin skins': 1,
|
||||
// },
|
||||
// 'repeated SkinInfo skinInfos': 1
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// },
|
||||
// 'onJewelAdd': {
|
||||
// 'message Data': {
|
||||
// "message EquipInfo": {
|
||||
// "message RandSe": {
|
||||
// 'required uInt32 id': 1,
|
||||
// 'required uInt32 seid': 2,
|
||||
// 'required int32 rand': 3,
|
||||
// 'required boolean locked': 4
|
||||
// },
|
||||
// "message Hole": {
|
||||
// 'required uInt32 id': 1,
|
||||
// 'required boolean isOpen': 2,
|
||||
// 'required uInt32 jewel': 3
|
||||
// },
|
||||
// 'repeated Hole holes': 1,
|
||||
// 'repeated RandSe randSe': 2,
|
||||
// 'required uInt32 seqId': 3,
|
||||
// 'required uInt32 id': 4,
|
||||
// 'required uInt32 hid': 6,
|
||||
// 'required uInt32 count': 7,
|
||||
// 'required uInt32 quality': 8,
|
||||
// 'required uInt32 ePlaceId': 9,
|
||||
// 'required uInt32 suitId': 11,
|
||||
// 'required int32 randRange': 12
|
||||
// },
|
||||
// 'repeated EquipInfo equipInfos': 1
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// },
|
||||
// 'onJewelDel': {
|
||||
// 'message Data': {
|
||||
// 'repeated uInt32 equips': 1
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// },
|
||||
// 'onHeadChange': {
|
||||
// 'message Data': {
|
||||
// "message FigureInfo": {
|
||||
// 'required int32 id': 1,
|
||||
// 'required bool enable': 2,
|
||||
// 'optional int32 time': 3
|
||||
// },
|
||||
// 'repeated FigureInfo heads': 1,
|
||||
// 'repeated FigureInfo frames': 2,
|
||||
// 'repeated FigureInfo spines': 3
|
||||
// },
|
||||
// 'required string msg': 1,
|
||||
// 'required uInt32 code': 2,
|
||||
// 'required Data data': 3
|
||||
// }
|
||||
};
|
||||
module.exports = {};
|
||||
|
||||
Reference in New Issue
Block a user