ecs/proto/idl/mod_role.proto

163 lines
3.8 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package Pb;
option go_package = "pb/";
import "enums.proto";
// ModId.ModuleLogin: 2000
// 登录模块消息定义
// 如果定义的消息内没有字段或者消息被注释掉了,说明该请求不需要参数,发送消息时仅发送包头即可,包体可为空, 返回的消息亦是如此。
// MsgId.ModRoleProperty: 2001
// 角色属性返回
message RolePropertyAck {
//unchangeable
uint64 UserId = 1;
uint32 Platform = 2;
uint32 Channel = 3;
uint32 ServerId = 4;
string Username = 5;
int64 CreateTime = 6;
//Fields
uint32 Language = 7;
string RoleName = 8;
uint32 RoleGender = 9;
uint32 AvatarFrame = 10;
uint32 ChatBubble = 11;
uint32 NamePrefix = 12;
uint32 NameTitle = 13;
uint32 RoleTitle = 14;
uint32 RoleLevel = 15;
uint32 LoginDays = 16;
int64 PowerNextTime = 17;
}
// MsgId.ModRoleProperty: 2001
// 角色属性对
message RoleProperty {
RolePropertyType Type = 1;
int64 Value = 2;
}
// MsgId.ModRolePropertyChange: 2002;
// 角色属性变更请求
message RolePropertyChangeReq {
RoleProperty Property = 1;
}
// MsgId.ModRolePropertyChange: 2002;
// 角色属性变更返回
message RolePropertyChangeAck {
repeated RoleProperty PropertyList = 1;
}
// MsgId.ModRoleChangeLanguage: 2003;
// 角色更改语言请求
message RoleChangeLanguageReq {
uint32 Language = 1;
}
// MsgId.ModRoleChangeLanguage: 2003;
// 角色变更语言返回
message RoleChangeLanguageAck {
uint32 Language = 1;
}
// MsgId.ModRoleChangeRoleName: 2004;
// 角色更改语言请求
message RoleChangeRoleNameReq {
string RoleName = 1;
}
// MsgId.ModRoleChangeRoleName: 2004;
// 角色变更语言返回
message RoleChangeRoleNameAck {
string RoleName = 1;
}
// 角色货币
message Money {
MoneyType Type = 1;
uint32 Value = 2;
}
// MsgId.ModRoleMoneyList: 2003
// MsgId.ModRoleMoneyChange: 2004
// 角色货币列表返回
message MoneyListAck {
repeated Money MoneyList = 1;
}
message BattleHero {
uint32 Position = 1; //布阵位置从0开始, 范围0-7
uint64 HeroUid = 2;
uint64 Capacity = 3;
repeated uint64 Equip = 4;
repeated uint64 Treasure = 5;
repeated uint64 Artifact = 7;
repeated uint64 Mounts = 6;
repeated uint64 General = 8;
repeated uint64 Ornament = 9;
repeated uint64 Sack = 10;
repeated uint64 FateChart = 11;
repeated uint64 Tetris = 12;
}
// ModRoleBattleHeroList: 2007
// ModRoleBattleHeroChange: 2008
// 布阵英雄列表返回
message BattleHeroListAck {
repeated BattleHero HeroList = 1;
}
// ModRoleBattleHeroChange: 2008
// 布阵英雄变更请求
message BattleHeroChangeReq {
uint32 Position = 1;
uint64 HeroUid = 2;
}
// ModRoleBattleHeroEquip: 2009
// 布阵英雄装备变更请求
message BattleHeroEquipReq {
uint32 Position = 1;
EquipType EquipType = 2; // 要传不然Uid为0时不知道是什么类型的装备
uint64 EquipUid = 3; // 传0为卸下装备
}
// ModRoleBattleHeroTreasure: 2010
// 布阵英雄宝物变更请求
message BattleHeroTreasureReq {
uint32 Position = 1;
TreasureType TreasureType = 2; // 要传不然Uid为0时不知道是什么类型的宝物
uint64 TreasureUid = 3; // 传0为卸下宝物
}
// ModRoleBattleHeroArtifact: 2011
// 布阵英雄神兵变更请求
message BattleHeroArtifactReq {
uint32 Position = 1;
uint64 ArtifactUid = 2;
}
// ModRoleBattleHeroMounts: 2012
// 布阵英雄坐骑变更请求
message BattleHeroMountsReq {
uint32 Position = 1;
uint64 MountsUid = 2;
}
// ModRoleBattleHeroGeneral: 2013
// 布阵英雄名将变更请求
message BattleHeroGeneralReq {
uint32 Position = 1;
uint64 GeneralUid = 2;
}
// ModRoleBattleHeroOrnament: 2014
// 布阵英雄饰品变更请求
message BattleHeroOrnamentReq {
uint32 Position = 1;
uint64 OrnamentsUid = 2;
}