Files
hk4e/protocol/proto_hk4e/cmd/cmd_widget.proto
2023-05-22 00:39:02 +08:00

802 lines
17 KiB
Protocol Buffer

syntax = "proto3";
package proto;
import "define.proto";
option go_package = "./;proto";
enum LunchBoxSlotType {
LUNCH_BOX_SLOT_NONE = 0;
LUNCH_BOX_SLOT_REVIVE = 1;
LUNCH_BOX_SLOT_HEAL = 2;
}
enum WidgetSlotTag {
WIDGET_SLOT_QUICK_USE = 0;
WIDGET_SLOT_ATTACH_AVATAR = 1;
}
enum WidgetSlotOp {
WIDGET_SLOT_OP_ATTACH = 0;
WIDGET_SLOT_OP_DETACH = 1;
}
enum WidgetCreatorOpType {
WIDGET_CREATOR_TYPE_NONE = 0;
WIDGET_CREATOR_TYPE_RETRACT = 1;
WIDGET_CREATOR_TYPE_RETRACT_AND_CREATE = 2;
}
enum WIDGET_EXTRA_CD_TYPE {
WIDGET_EXTRA_CD_TYPE_NONE = 0;
WIDGET_EXTRA_CD_TYPE_E_SKILL_SHARED = 1;
}
enum FireworksReformParamType {
FIREWORKS_REFORM_PARAM_NONE = 0;
FIREWORKS_REFORM_PARAM_COLOR = 1;
FIREWORKS_REFORM_PARAM_HEIGHT = 2;
FIREWORKS_REFORM_PARAM_SIZE = 3;
FIREWORKS_REFORM_PARAM_DENSITY = 4;
FIREWORKS_REFORM_PARAM_ROTATION = 5;
}
enum FireworksLaunchParamType {
FIREWORKS_LAUNCH_PARAM_NONE = 0;
FIREWORKS_LAUNCH_PARAM_REPEAT = 1;
FIREWORKS_LAUNCH_PARAM_INTEVAL = 2;
FIREWORKS_LAUNCH_PARAM_DELAY = 3;
FIREWORKS_LAUNCH_PARAM_ROUND_INTEVAL = 4;
FIREWORKS_LAUNCH_PARAM_MAX = 5;
}
message AnchorPointData {
uint32 scene_id = 5;
uint32 anchor_point_id = 9;
uint32 end_time = 8;
Vector pos = 15;
Vector rot = 2;
}
message AnchorPointDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4276;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated AnchorPointData anchor_point_list = 10;
uint32 next_usable_time = 14;
}
message AnchorPointOpReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4257;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
enum AnchorPointOpType {
ANCHOR_POINT_OP_NONE = 0;
ANCHOR_POINT_OP_TELEPORT = 1;
ANCHOR_POINT_OP_REMOVE = 2;
}
uint32 anchor_point_id = 9;
uint32 anchor_point_op_type = 12;
}
message AnchorPointOpRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4252;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 5;
uint32 anchor_point_id = 12;
uint32 anchor_point_op_type = 4;
}
message LunchBoxData {
map<uint32, uint32> slot_material_map = 3;
}
message SetUpLunchBoxWidgetReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4272;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
LunchBoxData lunch_box_data = 6;
}
message SetUpLunchBoxWidgetRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4294;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
LunchBoxData lunch_box_data = 3;
int32 retcode = 13;
}
message OneoffGatherPointDetectorData {
Vector hint_center_pos = 7;
uint32 hint_radius = 14;
uint32 material_id = 10;
uint32 config_id = 6;
uint32 group_id = 13;
bool is_all_collected = 4;
bool is_hint_valid = 15;
}
message ClientCollectorData {
uint32 material_id = 10;
uint32 max_points = 8;
uint32 curr_points = 13;
}
message TreasureMapDetectorData {
uint32 region_id = 4;
Vector center_pos = 7;
bool is_region_detected = 6;
repeated Vector spot_list = 10;
uint32 radius = 14;
}
message SkyCrystalDetectorData {
bool is_hint_valid = 3;
Vector hint_center_pos = 8;
uint32 group_id = 6;
uint32 config_id = 9;
}
message SkyCrystalDetectorQuickUseResult {
SkyCrystalDetectorData sky_crystal_detector_data = 9;
int32 retcode = 8;
}
message WeatherWizardData {
uint32 shield_value = 13;
}
message WidgetCameraInfo {
uint32 target_entity_id = 4;
}
message WidgetThunderBirdFeatherInfo {
repeated uint32 entity_id_list = 4;
}
message QuickUseWidgetReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4299;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
oneof param {
WidgetCreateLocationInfo location_info = 676;
WidgetCameraInfo camera_info = 478;
WidgetCreatorInfo creator_info = 812;
WidgetThunderBirdFeatherInfo thunder_bird_feather_info = 1859;
}
}
message QuickUseWidgetRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4270;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
uint32 material_id = 6;
int32 retcode = 5;
oneof param {
OneoffGatherPointDetectorData detector_data = 3;
ClientCollectorData client_collector_data = 15;
SkyCrystalDetectorQuickUseResult sky_crystal_detector_quick_use_result = 168922;
}
}
message WidgetCoolDownData {
bool is_success = 5;
uint64 cool_down_time = 4;
uint32 id = 15;
}
message WidgetCoolDownNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4295;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated WidgetCoolDownData normal_cool_down_data_list = 1;
repeated WidgetCoolDownData group_cool_down_data_list = 12;
}
message WidgetReportReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4291;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
uint32 weather_wizard_shield_value = 7;
bool is_clear_sky_crystal_hint = 5;
uint32 material_id = 15;
bool is_client_collect = 14;
bool is_clear_hint = 13;
}
message WidgetReportRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4292;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 14;
uint32 material_id = 4;
}
message ClientCollectorDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4264;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated ClientCollectorData client_collector_data_list = 13;
}
message OneoffGatherPointDetectorDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4297;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated OneoffGatherPointDetectorData oneoff_gather_point_detector_data_list = 3;
}
message SkyCrystalDetectorDataUpdateNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4287;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
SkyCrystalDetectorData sky_crystal_detector_data = 9;
}
message TreasureMapDetectorDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4300;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
TreasureMapDetectorData data = 2;
}
message WidgetSlotData {
uint32 cd_over_time = 9;
WidgetSlotTag tag = 14;
uint32 material_id = 11;
bool is_active = 12;
}
message SetWidgetSlotReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4259;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
repeated WidgetSlotTag tag_list = 15;
uint32 material_id = 6;
WidgetSlotOp op = 2;
}
message SetWidgetSlotRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4277;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated WidgetSlotTag tag_list = 15;
int32 retcode = 6;
uint32 material_id = 1;
WidgetSlotOp op = 4;
}
message WidgetSlotChangeNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4267;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
WidgetSlotOp op = 11;
WidgetSlotData slot = 8;
}
message GetWidgetSlotReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4253;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
}
message GetWidgetSlotRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4254;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated WidgetSlotData slot_list = 13;
int32 retcode = 9;
}
message AllWidgetDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4271;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
WeatherWizardData weather_wizard_data = 5;
repeated OneoffGatherPointDetectorData oneoff_gather_point_detector_data_list = 15;
repeated WidgetCoolDownData normal_cool_down_data_list = 9;
LunchBoxData lunch_box_data = 1;
SkyCrystalDetectorData sky_crystal_detector_data = 12;
repeated ClientCollectorData client_collector_data_list = 4;
repeated AnchorPointData anchor_point_list = 3;
repeated WidgetCoolDownData cool_down_group_data_list = 13;
uint32 next_anchor_point_usable_time = 10;
repeated WidgetSlotData slot_list = 6;
repeated uint32 background_active_widget_list = 11;
}
message UseWidgetCreateGadgetReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4293;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
Vector pos = 15;
Vector rot = 12;
uint32 material_id = 4;
}
message UseWidgetCreateGadgetRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4290;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 15;
uint32 material_id = 12;
}
message UseWidgetRetractGadgetReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4286;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
uint32 entity_id = 3;
}
message UseWidgetRetractGadgetRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4261;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
int32 retcode = 6;
uint32 entity_id = 14;
}
message WidgetGadgetData {
repeated uint32 gadget_entity_id_list = 1;
uint32 gadget_id = 8;
}
message WidgetGadgetAllDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4284;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated WidgetGadgetData widget_gadget_data = 13;
}
message WidgetGadgetDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4266;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
WidgetGadgetData widget_gadget_data = 12;
}
message WidgetGadgetDestroyNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4274;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
uint32 entity_id = 15;
}
message WidgetCreateLocationInfo {
Vector rot = 3;
Vector pos = 10;
}
message WidgetCreatorInfo {
WidgetCreatorOpType op_type = 10;
uint32 entity_id = 1;
WidgetCreateLocationInfo location_info = 12;
}
message WidgetDoBagReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4255;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
uint32 material_id = 9;
oneof op_info {
WidgetCreateLocationInfo location_info = 832;
WidgetCreatorInfo widget_creator_info = 1497;
}
}
message WidgetDoBagRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4296;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 10;
uint32 material_id = 3;
}
message WidgetActiveChangeNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4280;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated WidgetSlotData widget_data_list = 5;
}
message WidgetUseAttachAbilityGroupChangeNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4258;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
bool is_attach = 6;
uint32 material_id = 11;
}
message WidgetCaptureAnimalReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4256;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
Vector pos = 10;
uint32 entity_id = 15;
uint32 material_id = 6;
}
message WidgetCaptureAnimalRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 4289;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 9;
uint32 entity_id = 4;
uint32 material_id = 8;
Vector pos = 10;
}
message WidgetUpdateExtraCDReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 5960;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
uint32 material_id = 14;
WIDGET_EXTRA_CD_TYPE extra_cd_type = 10;
uint32 cd_group = 7;
}
message WidgetUpdateExtraCDRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 6056;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 14;
uint32 material_id = 11;
WIDGET_EXTRA_CD_TYPE extra_cd_type = 6;
WidgetCoolDownData cool_data = 10;
uint32 cd_group = 15;
}
message FireworksReformParam {
FireworksReformParamType type = 8;
int32 value = 4;
}
message FireworksReformData {
uint32 id = 13;
repeated FireworksReformParam reform_param_list = 10;
}
message FireworksReformDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 6033;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated FireworksReformData fireworks_reform_data_list = 6;
}
message ReformFireworksReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 6036;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
FireworksReformData fireworks_reform_data = 3;
}
message ReformFireworksRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 5929;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 8;
}
message FireworksLaunchParam {
int32 value = 5;
FireworksLaunchParamType type = 4;
}
message FireworksLaunchSchemeData {
uint32 scheme_id = 3;
repeated uint32 fireworks_id_list = 2;
repeated FireworksLaunchParam launch_param_list = 7;
}
message LaunchFireworksReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 6090;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
FireworksLaunchSchemeData scheme_data = 13;
}
message LaunchFireworksRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 6057;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 6;
}
message FireworksLaunchDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 5928;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated FireworksLaunchSchemeData scheme_data_list = 12;
uint32 last_use_scheme_id = 4;
}
message ChangeWidgetBackgroundActiveStateReq {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 5907;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
IS_ALLOW_CLIENT = 1;
}
bool is_active = 15;
uint32 material_id = 3;
}
message ChangeWidgetBackgroundActiveStateRsp {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 6060;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
int32 retcode = 8;
uint32 material_id = 6;
}
message AllWidgetBackgroundActiveStateNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 6092;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated uint32 background_active_widget_list = 3;
}
message PlayerWidgetInfo {
uint32 uid = 14;
repeated WidgetSlotData slot_list = 13;
}
message RemotePlayerWidgetNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 5995;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
repeated PlayerWidgetInfo player_widget_info_list = 3;
}
message WidgetWeatherWizardDataNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
CMD_ID = 5942;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
}
uint32 shield_value = 15;
}