diff --git a/lib/proto/out/common.rs b/lib/proto/out/common.rs index 7cabb14..661b008 100644 --- a/lib/proto/out/common.rs +++ b/lib/proto/out/common.rs @@ -1,19 +1,22 @@ // This file is @generated by prost-build. -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct Transform { #[prost(double, repeated, tag = "1")] pub position: ::prost::alloc::vec::Vec, #[prost(double, repeated, tag = "2")] pub rotation: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Vector2Int { #[prost(int32, tag = "1")] pub x: i32, #[prost(int32, tag = "2")] pub y: i32, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct HollowGridState { #[prost(int32, tag = "1")] pub node_state: i32, @@ -24,7 +27,8 @@ pub struct HollowGridState { #[prost(int32, tag = "4")] pub sub_state: i32, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct LogSkillUseInfo { #[prost(int32, tag = "1")] pub skill_id: i32, @@ -39,7 +43,8 @@ pub struct LogSkillUseInfo { #[prost(string, tag = "6")] pub skill_name: ::prost::alloc::string::String, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct LogBattleAvatarInfo { #[prost(int32, tag = "1")] pub avatar_id: i32, @@ -68,7 +73,8 @@ pub struct LogBattleAvatarInfo { #[prost(message, repeated, tag = "14")] pub skill_use: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct LogBattleStatistics { #[prost(int64, tag = "1")] pub battle_uid: i64, @@ -87,7 +93,8 @@ pub struct LogBattleStatistics { #[prost(int32, tag = "11")] pub star: i32, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct FightResult { #[prost(int32, tag = "1")] pub result: i32, @@ -185,7 +192,9 @@ impl HollowGridFlag { Self::SyncToClient => "HOLLOW_GRID_FLAG_SYNC_TO_CLIENT", Self::Door => "HOLLOW_GRID_FLAG_DOOR", Self::CanTriggerMultiTimes => "HOLLOW_GRID_FLAG_CAN_TRIGGER_MULTI_TIMES", - Self::TemporaryVisibleAtAround => "HOLLOW_GRID_FLAG_TEMPORARY_VISIBLE_AT_AROUND", + Self::TemporaryVisibleAtAround => { + "HOLLOW_GRID_FLAG_TEMPORARY_VISIBLE_AT_AROUND" + } Self::Unlocked => "HOLLOW_GRID_FLAG_UNLOCKED", Self::Brighten => "HOLLOW_GRID_FLAG_BRIGHTEN", Self::Guide => "HOLLOW_GRID_FLAG_GUIDE", @@ -213,11 +222,17 @@ impl HollowGridFlag { "HOLLOW_GRID_FLAG_CAN_TRIGGER_EVENT" => Some(Self::CanTriggerEvent), "HOLLOW_GRID_FLAG_VISIBLE" => Some(Self::Visible), "HOLLOW_GRID_FLAG_VISIBLE_AT_GRID_AROUND" => Some(Self::VisibleAtGridAround), - "HOLLOW_GRID_FLAG_VISIBLE_BY_TRIGGER_EVENT" => Some(Self::VisibleByTriggerEvent), + "HOLLOW_GRID_FLAG_VISIBLE_BY_TRIGGER_EVENT" => { + Some(Self::VisibleByTriggerEvent) + } "HOLLOW_GRID_FLAG_SYNC_TO_CLIENT" => Some(Self::SyncToClient), "HOLLOW_GRID_FLAG_DOOR" => Some(Self::Door), - "HOLLOW_GRID_FLAG_CAN_TRIGGER_MULTI_TIMES" => Some(Self::CanTriggerMultiTimes), - "HOLLOW_GRID_FLAG_TEMPORARY_VISIBLE_AT_AROUND" => Some(Self::TemporaryVisibleAtAround), + "HOLLOW_GRID_FLAG_CAN_TRIGGER_MULTI_TIMES" => { + Some(Self::CanTriggerMultiTimes) + } + "HOLLOW_GRID_FLAG_TEMPORARY_VISIBLE_AT_AROUND" => { + Some(Self::TemporaryVisibleAtAround) + } "HOLLOW_GRID_FLAG_UNLOCKED" => Some(Self::Unlocked), "HOLLOW_GRID_FLAG_BRIGHTEN" => Some(Self::Brighten), "HOLLOW_GRID_FLAG_GUIDE" => Some(Self::Guide), @@ -329,7 +344,9 @@ impl NodeVisible { "NODE_VISIBLE_VISIBLE" => Some(Self::Visible), "NODE_VISIBLE_VISIBLE_AT_GRID_AROUND" => Some(Self::VisibleAtGridAround), "NODE_VISIBLE_VISIBLE_BY_TRIGGER_EVENT" => Some(Self::VisibleByTriggerEvent), - "NODE_VISIBLE_TEMPORARY_VISIBLE_AT_AROUND" => Some(Self::TemporaryVisibleAtAround), + "NODE_VISIBLE_TEMPORARY_VISIBLE_AT_AROUND" => { + Some(Self::TemporaryVisibleAtAround) + } "NODE_VISIBLE_BLOCKED" => Some(Self::Blocked), _ => None, } diff --git a/lib/proto/out/cs_output.rs b/lib/proto/out/cs_output.rs index c3bf695..069bb5f 100644 --- a/lib/proto/out/cs_output.rs +++ b/lib/proto/out/cs_output.rs @@ -20,9 +20,8 @@ pub struct PlayerGetTokenCsReq { #[prost(string, tag = "13")] pub client_rand_key: ::prost::alloc::string::String, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(2943)] pub struct PlayerGetTokenScRsp { #[prost(int32, tag = "15", xor = "9980")] @@ -50,9 +49,8 @@ pub struct PlayerLoginCsReq { pub system_info: ::prost::alloc::string::String, pub language: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(5155)] pub struct PlayerLoginScRsp { #[prost(int32, tag = "15", xor = "9363")] @@ -87,9 +85,8 @@ pub struct SelfBasicInfo { #[prost(uint32, tag = "15", xor = "14303")] pub name_change_times: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(9449)] pub struct GetSelfBasicInfoScRsp { #[prost(int32, tag = "10", xor = "11906")] @@ -100,9 +97,8 @@ pub struct GetSelfBasicInfoScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(4040)] pub struct GetPlayerTransactionCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(2405)] pub struct GetPlayerTransactionScRsp { #[prost(int32, tag = "1", xor = "3044")] @@ -113,9 +109,8 @@ pub struct GetPlayerTransactionScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(4470)] pub struct GetServerTimestampCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(5765)] pub struct GetServerTimestampScRsp { #[prost(int32, tag = "7", xor = "5162")] @@ -137,9 +132,8 @@ pub struct GetAuthkeyCsReq { #[prost(uint32, tag = "6", xor = "14114")] pub offline_verify_value: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(1828)] pub struct GetAuthkeyScRsp { #[prost(int32, tag = "15", xor = "10912")] @@ -161,9 +155,8 @@ pub struct ModNickNameCsReq { #[prost(uint32, tag = "13", xor = "8587")] pub avatar_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(4684)] pub struct ModNickNameScRsp { #[prost(int32, tag = "4", xor = "4291")] @@ -181,18 +174,16 @@ pub struct ModAvatarCsReq { #[prost(enumeration = "ModAvatarType", tag = "5")] pub r#type: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct ModAvatarScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(1907)] pub struct GetDisplayCaseDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(1886)] pub struct GetDisplayCaseDataScRsp { #[prost(int32, tag = "4", xor = "1656")] @@ -310,9 +301,8 @@ pub struct PlayerSyncScNotify { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(3896)] pub struct GetFriendListCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(8162)] pub struct GetFriendListScRsp { #[prost(int32, tag = "1", xor = "12219")] @@ -416,9 +406,8 @@ pub struct QuestData { #[prost(message, repeated, tag = "9")] pub quest_collection_list: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(2139)] pub struct GetQuestDataScRsp { #[prost(int32, tag = "14", xor = "3452")] @@ -443,9 +432,8 @@ pub struct ArchiveData { #[prost(message, repeated, tag = "6")] pub videotape_list: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(5371)] pub struct GetArchiveDataScRsp { #[prost(int32, tag = "5", xor = "11030")] @@ -487,9 +475,8 @@ pub struct HollowSync { #[prost(message, repeated, tag = "13")] pub hollow_info_list: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(6445)] pub struct GetHollowDataScRsp { #[prost(int32, tag = "13", xor = "7250")] @@ -506,9 +493,8 @@ pub struct AbyssData {} pub struct AbyssDungeon {} #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] pub struct AbyssGroup {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(8360)] pub struct AbyssGetDataScRsp { #[prost(int32, tag = "3", xor = "6547")] @@ -520,9 +506,8 @@ pub struct AbyssGetDataScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(8238)] pub struct AbyssArpeggioGetDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(8281)] pub struct AbyssArpeggioGetDataScRsp { #[prost(int32, tag = "3", xor = "13683")] @@ -536,9 +521,8 @@ pub struct StartTrainingQuestCsReq { #[prost(uint32, repeated, tag = "2")] pub avatar_id_list: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(5499)] pub struct StartTrainingQuestScRsp { #[prost(int32, tag = "6", xor = "12575")] @@ -558,9 +542,8 @@ pub struct HollowQuestProgressCsReq { #[prost(uint32, tag = "11", xor = "4318")] pub quest_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(5791)] pub struct HollowQuestProgressScRsp { #[prost(int32, tag = "14", xor = "9194")] @@ -568,9 +551,8 @@ pub struct HollowQuestProgressScRsp { #[prost(uint32, tag = "6", xor = "1787")] pub new_progress: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(8642)] pub struct StartHollowQuestScRsp { #[prost(int32, tag = "15", xor = "791")] @@ -612,9 +594,8 @@ pub struct MainCityQuestTrackNpcScNotify { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(2122)] pub struct EnterWorldCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(5373)] pub struct EnterWorldScRsp { #[prost(int32, tag = "4", xor = "5455")] @@ -661,8 +642,10 @@ pub struct HallSceneData { pub scene_unit_list: ::prost::alloc::vec::Vec, #[prost(map = "int32, int32", tag = "5")] pub main_city_objects_state: ::std::collections::HashMap, - pub hall_unknown_map_string_int: - ::std::collections::HashMap<::prost::alloc::string::String, i32>, + pub hall_unknown_map_string_int: ::std::collections::HashMap< + ::prost::alloc::string::String, + i32, + >, #[prost(uint32, tag = "14", xor = "289")] pub time_period: u32, #[prost(uint32, tag = "2", xor = "14067")] @@ -711,8 +694,10 @@ pub struct PublicVariable { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] pub struct QuestCondProgress { #[prost(map = "string, message", tag = "1")] - pub public_variables: - ::std::collections::HashMap<::prost::alloc::string::String, PublicVariable>, + pub public_variables: ::std::collections::HashMap< + ::prost::alloc::string::String, + PublicVariable, + >, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] pub struct LongFightProgressInfo { @@ -776,8 +761,10 @@ pub struct BehaviorComponent { #[prost(map = "string, int32", tag = "14")] pub int_specials: ::std::collections::HashMap<::prost::alloc::string::String, i32>, #[prost(map = "string, string", tag = "4")] - pub str_specials: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + pub str_specials: ::std::collections::HashMap< + ::prost::alloc::string::String, + ::prost::alloc::string::String, + >, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] pub struct OwnerComponent { @@ -942,9 +929,8 @@ pub struct EnterSceneScNotify { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(9745)] pub struct EnterSectionCompleteCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(1678)] pub struct EnterSectionCompleteScRsp { #[prost(int32, tag = "4", xor = "6723")] @@ -962,8 +948,10 @@ pub struct HallRefreshScNotify { pub scene_unit_list: ::prost::alloc::vec::Vec, #[prost(map = "int32, int32", tag = "3")] pub main_city_objects_state: ::std::collections::HashMap, - pub hall_unknown_map_string_int: - ::std::collections::HashMap<::prost::alloc::string::String, i32>, + pub hall_unknown_map_string_int: ::std::collections::HashMap< + ::prost::alloc::string::String, + i32, + >, #[prost(uint32, tag = "5", xor = "2641")] pub time_period: u32, #[prost(uint32, tag = "1362", xor = "7881")] @@ -984,9 +972,8 @@ pub struct HallRefreshScNotify { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(1749)] pub struct SceneTransitionCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct SceneTransitionScRsp { pub retcode: i32, } @@ -998,9 +985,8 @@ pub struct SavePosInMainCityCsReq { #[prost(message, optional, tag = "14")] pub position: ::core::option::Option, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct SavePosInMainCityScRsp { pub retcode: i32, } @@ -1010,9 +996,8 @@ pub struct TriggerInteractCsReq { #[prost(int32, tag = "6", xor = "5841")] pub interact_id: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct TriggerInteractScRsp { pub retcode: i32, } @@ -1026,18 +1011,16 @@ pub struct InteractWithUnitCsReq { #[prost(enumeration = "InteractTarget", tag = "9")] pub r#type: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct InteractWithUnitScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(5099)] pub struct EndNpcTalkCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct EndNpcTalkScRsp { pub retcode: i32, } @@ -1068,17 +1051,25 @@ pub struct SectionEventScNotify { #[prost(map = "string, int32", tag = "7")] pub int_specials: ::std::collections::HashMap<::prost::alloc::string::String, i32>, #[prost(map = "string, string", tag = "10")] - pub str_specials: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - pub section_event_map_str_int_2: - ::std::collections::HashMap<::prost::alloc::string::String, i32>, - pub section_event_map_str_str_2: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + pub str_specials: ::std::collections::HashMap< + ::prost::alloc::string::String, + ::prost::alloc::string::String, + >, + pub section_event_map_str_int_2: ::std::collections::HashMap< + ::prost::alloc::string::String, + i32, + >, + pub section_event_map_str_str_2: ::std::collections::HashMap< + ::prost::alloc::string::String, + ::prost::alloc::string::String, + >, #[prost(enumeration = "EventGraphOwnerType", tag = "8")] pub owner_type: i32, #[prost(message, repeated, tag = "6")] pub action_list: ::prost::alloc::vec::Vec, - pub section_event_unk_string_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub section_event_unk_string_list: ::prost::alloc::vec::Vec< + ::prost::alloc::string::String, + >, #[prost(uint32, tag = "9", xor = "9379")] pub hollow_event_id: u32, #[prost(string, tag = "1031")] @@ -1100,9 +1091,8 @@ pub struct RunEventGraphCsReq { #[prost(enumeration = "EventGraphOwnerType", tag = "4")] pub owner_type: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(7043)] pub struct RunEventGraphScRsp { #[prost(int32, tag = "12", xor = "2082")] @@ -1132,9 +1122,8 @@ pub struct RunEventActionCsReq { #[prost(bytes = "vec", tag = "10")] pub action_body: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(7688)] pub struct RunEventActionScRsp { #[prost(int32, tag = "7", xor = "2556")] @@ -1170,9 +1159,8 @@ pub struct EnterSectionCsReq { #[prost(enumeration = "EventGraphOwnerType", tag = "10")] pub owner_type: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct EnterSectionScRsp { pub retcode: i32, } @@ -1184,9 +1172,8 @@ pub struct EndBattleCsReq { } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] pub struct FightSettle {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(3616)] pub struct EndBattleScRsp { #[prost(int32, tag = "6", xor = "859")] @@ -1197,27 +1184,24 @@ pub struct EndBattleScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(1428)] pub struct SyncLongFightProgressCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct SyncLongFightProgressScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(6188)] pub struct SyncGlobalVariablesCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct SyncGlobalVariablesScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(1613)] pub struct LeaveCurSceneCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(4596)] pub struct LeaveCurSceneScRsp { #[prost(int32, tag = "15", xor = "12916")] @@ -1226,9 +1210,8 @@ pub struct LeaveCurSceneScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(1439)] pub struct SectionRefreshCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(304)] pub struct SectionRefreshScRsp { #[prost(int32, tag = "9", xor = "14014")] @@ -1257,9 +1240,8 @@ pub struct HollowTickCsReq { #[prost(uint32, tag = "15", xor = "12304")] pub unknown_hollow_tick: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct HollowTickScRsp { pub retcode: i32, } @@ -1271,9 +1253,8 @@ pub struct HollowMoveCsReq { #[prost(message, optional, tag = "14")] pub hollow_move_unknown: ::core::option::Option, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(7708)] pub struct HollowMoveScRsp { #[prost(int32, tag = "9", xor = "908")] @@ -1289,11 +1270,12 @@ pub struct HollowEventReportCsReq { #[prost(uint32, repeated, tag = "15")] pub hollow_event_report_int_list: ::prost::alloc::vec::Vec, #[prost(string, repeated, tag = "1")] - pub hollow_event_report_str_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub hollow_event_report_str_list: ::prost::alloc::vec::Vec< + ::prost::alloc::string::String, + >, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct HollowEventReportScRsp { pub retcode: i32, } @@ -1320,18 +1302,16 @@ pub struct HollowPushScNotify { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(9552)] pub struct TriggerHollowEventCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct TriggerHollowEventScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(3565)] pub struct GetWeaponDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(7471)] pub struct GetWeaponDataScRsp { #[prost(int32, tag = "5", xor = "12842")] @@ -1342,9 +1322,8 @@ pub struct GetWeaponDataScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(5095)] pub struct GetItemDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(6708)] pub struct GetItemDataScRsp { #[prost(int32, tag = "7", xor = "11666")] @@ -1357,9 +1336,8 @@ pub struct GetItemDataScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(4228)] pub struct GetAvatarDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(3783)] pub struct GetAvatarDataScRsp { #[prost(int32, tag = "15", xor = "1237")] @@ -1381,7 +1359,17 @@ pub struct AddAvatarScNotify { } /// Nested message and enum types in `AddAvatarScNotify`. pub mod add_avatar_sc_notify { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[derive( + Clone, + Copy, + Debug, + PartialEq, + Eq, + Hash, + PartialOrd, + Ord, + ::prost::Enumeration + )] #[repr(i32)] pub enum PerformType { PerformNone = 0, @@ -1419,9 +1407,8 @@ pub struct AvatarLevelUpCsReq { #[prost(map = "uint32, uint32", tag = "11")] pub exp_materials: ::std::collections::HashMap, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(9184)] pub struct AvatarLevelUpScRsp { #[prost(int32, tag = "5", xor = "11584")] @@ -1439,9 +1426,8 @@ pub struct EquipmentDressCsReq { #[prost(uint32, tag = "14", xor = "14568")] pub dress_index: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct EquipmentDressScRsp { pub retcode: i32, } @@ -1453,9 +1439,8 @@ pub struct EquipmentUnDressCsReq { #[prost(uint32, repeated, tag = "1")] pub undress_index_list: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct EquipmentUnDressScRsp { pub retcode: i32, } @@ -1474,9 +1459,8 @@ pub struct EquipmentSuitDressCsReq { #[prost(message, repeated, tag = "10")] pub param_list: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct EquipmentSuitDressScRsp { pub retcode: i32, } @@ -1488,9 +1472,8 @@ pub struct WeaponDressCsReq { #[prost(uint32, tag = "14", xor = "2235")] pub weapon_uid: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct WeaponDressScRsp { pub retcode: i32, } @@ -1500,9 +1483,8 @@ pub struct WeaponUnDressCsReq { #[prost(uint32, tag = "9", xor = "11054")] pub avatar_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct WeaponUnDressScRsp { pub retcode: i32, } @@ -1514,9 +1496,8 @@ pub struct AvatarShowWeaponCsReq { #[prost(enumeration = "AvatarShowWeaponType", tag = "7")] pub show_weapon_type: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct AvatarShowWeaponScRsp { pub retcode: i32, } @@ -1528,9 +1509,8 @@ pub struct AvatarFavoriteCsReq { #[prost(bool, tag = "2")] pub is_favorite: bool, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct AvatarFavoriteScRsp { pub retcode: i32, } @@ -1542,9 +1522,8 @@ pub struct AvatarSkinDressCsReq { #[prost(uint32, tag = "10", xor = "14019")] pub avatar_skin_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct AvatarSkinDressScRsp { pub retcode: i32, } @@ -1554,9 +1533,8 @@ pub struct AvatarSkinUnDressCsReq { #[prost(uint32, tag = "6", xor = "5167")] pub avatar_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct AvatarSkinUnDressScRsp { pub retcode: i32, } @@ -1566,18 +1544,16 @@ pub struct GetAvatarRecommendEquipCsReq { #[prost(uint32, tag = "7", xor = "13877")] pub avatar_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct GetAvatarRecommendEquipScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(9336)] pub struct GetEquipDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(1093)] pub struct GetEquipDataScRsp { #[prost(int32, tag = "15", xor = "12763")] @@ -1588,9 +1564,8 @@ pub struct GetEquipDataScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(4859)] pub struct GetWishlistDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(1643)] pub struct GetWishlistDataScRsp { #[prost(int32, tag = "11", xor = "1124")] @@ -1625,9 +1600,8 @@ pub struct BuddyInfo { #[prost(uint32, repeated, tag = "6")] pub taken_rank_up_reward_list: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(854)] pub struct GetBuddyDataScRsp { #[prost(int32, tag = "11", xor = "1482")] @@ -1691,9 +1665,8 @@ pub struct GachaDisplayData { #[prost(message, optional, tag = "12")] pub gacha_info: ::core::option::Option, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(4015)] pub struct GetGachaDataScRsp { #[prost(int32, tag = "8", xor = "9581")] @@ -1730,9 +1703,8 @@ pub struct DropItem { #[prost(bool, tag = "2")] pub lock: bool, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(1903)] pub struct DoGachaScRsp { #[prost(int32, tag = "6", xor = "4185")] @@ -1752,9 +1724,8 @@ pub struct GachaBuyMaterialCsReq { #[prost(uint32, tag = "15", xor = "8219")] pub count: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct GachaBuyMaterialScRsp { pub retcode: i32, } @@ -1766,18 +1737,16 @@ pub struct GachaSetNewbieAvatarCsReq { #[prost(uint32, tag = "15", xor = "10905")] pub avatar_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct GachaSetNewbieAvatarScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(9304)] pub struct VideoGetInfoCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(9793)] pub struct VideoGetInfoScRsp { #[prost(int32, tag = "6", xor = "7231")] @@ -1791,9 +1760,8 @@ pub struct SavePlayerAccessoryCsReq { #[prost(message, optional, tag = "9")] pub player_accessory: ::core::option::Option, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(9927)] pub struct SavePlayerAccessoryScRsp { #[prost(int32, tag = "15", xor = "7398")] @@ -1825,9 +1793,8 @@ pub struct SavePlayerSystemSettingCsReq { #[prost(map = "uint32, uint32", tag = "6")] pub setting_content_map: ::std::collections::HashMap, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct SavePlayerSystemSettingScRsp { pub retcode: i32, } @@ -1848,9 +1815,8 @@ pub struct SwitchData { #[prost(map = "uint32, message", tag = "12")] pub input_setting_map: ::std::collections::HashMap, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(810)] pub struct GetSwitchDataScRsp { #[prost(int32, tag = "7", xor = "3091")] @@ -1968,9 +1934,8 @@ pub struct MiscData { #[prost(message, optional, tag = "520")] pub player_accessory: ::core::option::Option, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(4580)] pub struct GetMiscDataScRsp { #[prost(int32, tag = "3", xor = "919")] @@ -2029,18 +1994,16 @@ pub struct SelectPostGirlCsReq { #[prost(bool, tag = "4")] pub post_girl_random_toggle: bool, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct SelectPostGirlScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(5193)] pub struct GameLogReportCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct GameLogReportScRsp { pub retcode: i32, } @@ -2054,9 +2017,8 @@ pub struct PlayerOperationCsReq { #[prost(int32, tag = "15", xor = "2789")] pub param: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct PlayerOperationScRsp { pub retcode: i32, } @@ -2066,9 +2028,8 @@ pub struct EndNewbieCsReq { #[prost(uint32, tag = "15", xor = "12112")] pub group_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct EndNewbieScRsp { pub retcode: i32, pub group_id: u32, @@ -2079,18 +2040,16 @@ pub struct FinishNewbieGroupCsReq { #[prost(uint32, tag = "8", xor = "15102")] pub group_id: u32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct FinishNewbieGroupScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(6344)] pub struct GetNewsStandDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(1010)] pub struct GetNewsStandDataScRsp { #[prost(int32, tag = "2", xor = "14543")] @@ -2101,18 +2060,16 @@ pub struct GetNewsStandDataScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(7891)] pub struct ReadNewsCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct ReadNewsScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(6447)] pub struct NewsStandSignCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(8595)] pub struct NewsStandSignScRsp { #[prost(int32, tag = "12", xor = "3785")] @@ -2127,18 +2084,16 @@ pub struct NewsStandSignScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(4825)] pub struct ReportUiLayoutPlatformCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct ReportUiLayoutPlatformScRsp { pub retcode: i32, } #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(8578)] pub struct BattleReportCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct BattleReportScRsp { pub retcode: i32, } @@ -2147,9 +2102,8 @@ pub struct BattleReportScRsp { pub struct GetRamenDataCsReq {} #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] pub struct RamenData {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(6583)] pub struct GetRamenDataScRsp { #[prost(int32, tag = "15", xor = "9558")] @@ -2165,9 +2119,8 @@ pub struct PerformTriggerCsReq { #[prost(int32, tag = "3", xor = "12793")] pub perform_type: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(5813)] pub struct PerformTriggerScRsp { #[prost(int32, tag = "11", xor = "11064")] @@ -2185,9 +2138,8 @@ pub struct PerformEndCsReq { #[prost(int64, tag = "12", xor = "601")] pub perform_uid: i64, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct PerformEndScRsp { pub retcode: i32, } @@ -2201,9 +2153,8 @@ pub struct PerformJumpCsReq { #[prost(int64, tag = "14", xor = "8082")] pub perform_uid: i64, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct PerformJumpScRsp { pub retcode: i32, } @@ -2215,9 +2166,8 @@ pub struct StartTrainingCsReq { #[prost(int32, tag = "3", xor = "9079")] pub special_training_id: i32, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(4888)] pub struct StartTrainingScRsp { #[prost(int32, tag = "5", xor = "5832")] @@ -2228,9 +2178,8 @@ pub struct StartTrainingScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(3640)] pub struct GetPhotoWallDataCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(6396)] pub struct GetPhotoWallDataScRsp { #[prost(int32, tag = "6", xor = "12535")] @@ -2239,9 +2188,8 @@ pub struct GetPhotoWallDataScRsp { #[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] #[cmd_id(3813)] pub struct GetMonthDailyRewardListCsReq {} -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(8069)] pub struct GetMonthDailyRewardListScRsp { #[prost(int32, tag = "10", xor = "8475")] @@ -2290,9 +2238,8 @@ pub struct AreaStreetInfo { #[prost(bool, tag = "8")] pub new_area_portals_showed: bool, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(6060)] pub struct GetAreaMapDataScRsp { #[prost(int32, tag = "13", xor = "10415")] @@ -2312,9 +2259,8 @@ pub struct AreaMapModStateCsReq { #[prost(bool, tag = "10")] pub new_area_portals_showed: bool, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] pub struct AreaMapModStateScRsp { pub retcode: i32, } @@ -2324,9 +2270,8 @@ pub struct GetAreaPortalDataCsReq { #[prost(uint32, repeated, tag = "11")] pub area_portal_id_list: ::prost::alloc::vec::Vec, } -#[derive( - Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd, ::proto_derive::NetResponse, -)] +#[derive(Clone, PartialEq, ::proto_derive::Message, ::proto_derive::NetCmd)] +#[derive(::proto_derive::NetResponse)] #[cmd_id(5117)] pub struct GetAreaPortalDataScRsp { #[prost(int32, tag = "15", xor = "14153")] @@ -2690,7 +2635,9 @@ impl HollowComponentType { Self::IdComponent => "HOLLOW_COMPONENT_TYPE_ID_COMPONENT", Self::PosComponent => "HOLLOW_COMPONENT_TYPE_POS_COMPONENT", Self::HollowGridComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_GRID_COMPONENT", - Self::LightInteractionComponent => "HOLLOW_COMPONENT_TYPE_LIGHT_INTERACTION_COMPONENT", + Self::LightInteractionComponent => { + "HOLLOW_COMPONENT_TYPE_LIGHT_INTERACTION_COMPONENT" + } Self::OwnedEntityComponent => "HOLLOW_COMPONENT_TYPE_OWNED_ENTITY_COMPONENT", Self::ChessUiComponent => "HOLLOW_COMPONENT_TYPE_CHESS_UI_COMPONENT", Self::HollowEventComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_EVENT_COMPONENT", @@ -2706,8 +2653,12 @@ impl HollowComponentType { Self::ConwayLifeGameLifeStateComponent => { "HOLLOW_COMPONENT_TYPE_CONWAY_LIFE_GAME_LIFE_STATE_COMPONENT" } - Self::EntityPriorityComponent => "HOLLOW_COMPONENT_TYPE_ENTITY_PRIORITY_COMPONENT", - Self::BigTvChessUiComponent => "HOLLOW_COMPONENT_TYPE_BIG_TV_CHESS_UI_COMPONENT", + Self::EntityPriorityComponent => { + "HOLLOW_COMPONENT_TYPE_ENTITY_PRIORITY_COMPONENT" + } + Self::BigTvChessUiComponent => { + "HOLLOW_COMPONENT_TYPE_BIG_TV_CHESS_UI_COMPONENT" + } Self::GridStateComponent => "HOLLOW_COMPONENT_TYPE_GRID_STATE_COMPONENT", Self::SpringComponent => "HOLLOW_COMPONENT_TYPE_SPRING_COMPONENT", Self::BlockComponent => "HOLLOW_COMPONENT_TYPE_BLOCK_COMPONENT", @@ -2717,31 +2668,53 @@ impl HollowComponentType { Self::HollowScriptSequenceComponent => { "HOLLOW_COMPONENT_TYPE_HOLLOW_SCRIPT_SEQUENCE_COMPONENT" } - Self::HollowSnapshotComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_SNAPSHOT_COMPONENT", + Self::HollowSnapshotComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_SNAPSHOT_COMPONENT" + } Self::HollowMapComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_MAP_COMPONENT", Self::HollowPluginCollectionComponent => { "HOLLOW_COMPONENT_TYPE_HOLLOW_PLUGIN_COLLECTION_COMPONENT" } Self::InnerWorldPlugin => "HOLLOW_COMPONENT_TYPE_INNER_WORLD_PLUGIN", Self::HollowLightPlugin => "HOLLOW_COMPONENT_TYPE_HOLLOW_LIGHT_PLUGIN", - Self::HollowNpcMgrComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_NPC_MGR_COMPONENT", - Self::HollowTimeRewindComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_TIME_REWIND_COMPONENT", + Self::HollowNpcMgrComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_NPC_MGR_COMPONENT" + } + Self::HollowTimeRewindComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_TIME_REWIND_COMPONENT" + } Self::NpcPosExt => "HOLLOW_COMPONENT_TYPE_NPC_POS_EXT", Self::ClientStateComponent => "HOLLOW_COMPONENT_TYPE_CLIENT_STATE_COMPONENT", Self::PlayerPosExt => "HOLLOW_COMPONENT_TYPE_PLAYER_POS_EXT", - Self::HollowRepairZoneComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_REPAIR_ZONE_COMPONENT", - Self::HollowGlobalComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_GLOBAL_COMPONENT", + Self::HollowRepairZoneComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_REPAIR_ZONE_COMPONENT" + } + Self::HollowGlobalComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_GLOBAL_COMPONENT" + } Self::AimRectComponent => "HOLLOW_COMPONENT_TYPE_AIM_RECT_COMPONENT", Self::SignalMgrComponent => "HOLLOW_COMPONENT_TYPE_SIGNAL_MGR_COMPONENT", - Self::HollowFloorMgrComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_FLOOR_MGR_COMPONENT", + Self::HollowFloorMgrComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_FLOOR_MGR_COMPONENT" + } Self::AreaCameraComponent => "HOLLOW_COMPONENT_TYPE_AREA_CAMERA_COMPONENT", - Self::GridInnerWorldComponent => "HOLLOW_COMPONENT_TYPE_GRID_INNER_WORLD_COMPONENT", - Self::HollowSectionComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_SECTION_COMPONENT", + Self::GridInnerWorldComponent => { + "HOLLOW_COMPONENT_TYPE_GRID_INNER_WORLD_COMPONENT" + } + Self::HollowSectionComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_SECTION_COMPONENT" + } Self::BigWorldComponent => "HOLLOW_COMPONENT_TYPE_BIG_WORLD_COMPONENT", - Self::ElevatorGridComponent => "HOLLOW_COMPONENT_TYPE_ELEVATOR_GRID_COMPONENT", + Self::ElevatorGridComponent => { + "HOLLOW_COMPONENT_TYPE_ELEVATOR_GRID_COMPONENT" + } Self::HideComponent => "HOLLOW_COMPONENT_TYPE_HIDE_COMPONENT", - Self::HollowSpawnerComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_SPAWNER_COMPONENT", - Self::HollowHackerGameComponent => "HOLLOW_COMPONENT_TYPE_HOLLOW_HACKER_GAME_COMPONENT", + Self::HollowSpawnerComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_SPAWNER_COMPONENT" + } + Self::HollowHackerGameComponent => { + "HOLLOW_COMPONENT_TYPE_HOLLOW_HACKER_GAME_COMPONENT" + } Self::PopInteractComponent => "HOLLOW_COMPONENT_TYPE_POP_INTERACT_COMPONENT", Self::AbilityMarkComponent => "HOLLOW_COMPONENT_TYPE_ABILITY_MARK_COMPONENT", } @@ -2752,19 +2725,31 @@ impl HollowComponentType { "HOLLOW_COMPONENT_TYPE_NONE" => Some(Self::None), "HOLLOW_COMPONENT_TYPE_ID_COMPONENT" => Some(Self::IdComponent), "HOLLOW_COMPONENT_TYPE_POS_COMPONENT" => Some(Self::PosComponent), - "HOLLOW_COMPONENT_TYPE_HOLLOW_GRID_COMPONENT" => Some(Self::HollowGridComponent), + "HOLLOW_COMPONENT_TYPE_HOLLOW_GRID_COMPONENT" => { + Some(Self::HollowGridComponent) + } "HOLLOW_COMPONENT_TYPE_LIGHT_INTERACTION_COMPONENT" => { Some(Self::LightInteractionComponent) } - "HOLLOW_COMPONENT_TYPE_OWNED_ENTITY_COMPONENT" => Some(Self::OwnedEntityComponent), + "HOLLOW_COMPONENT_TYPE_OWNED_ENTITY_COMPONENT" => { + Some(Self::OwnedEntityComponent) + } "HOLLOW_COMPONENT_TYPE_CHESS_UI_COMPONENT" => Some(Self::ChessUiComponent), - "HOLLOW_COMPONENT_TYPE_HOLLOW_EVENT_COMPONENT" => Some(Self::HollowEventComponent), + "HOLLOW_COMPONENT_TYPE_HOLLOW_EVENT_COMPONENT" => { + Some(Self::HollowEventComponent) + } "HOLLOW_COMPONENT_TYPE_CATEGORY_COMPONENT" => Some(Self::CategoryComponent), "HOLLOW_COMPONENT_TYPE_BEHAVIOR_COMPONENT" => Some(Self::BehaviorComponent), "HOLLOW_COMPONENT_TYPE_OWNER_COMPONENT" => Some(Self::OwnerComponent), - "HOLLOW_COMPONENT_TYPE_HOLLOW_NPC_COMPONENT" => Some(Self::HollowNpcComponent), - "HOLLOW_COMPONENT_TYPE_HOLLOW_SNAKE_COMPONENT" => Some(Self::HollowSnakeComponent), - "HOLLOW_COMPONENT_TYPE_HOLLOW_LIGHT_COMPONENT" => Some(Self::HollowLightComponent), + "HOLLOW_COMPONENT_TYPE_HOLLOW_NPC_COMPONENT" => { + Some(Self::HollowNpcComponent) + } + "HOLLOW_COMPONENT_TYPE_HOLLOW_SNAKE_COMPONENT" => { + Some(Self::HollowSnakeComponent) + } + "HOLLOW_COMPONENT_TYPE_HOLLOW_LIGHT_COMPONENT" => { + Some(Self::HollowLightComponent) + } "HOLLOW_COMPONENT_TYPE_EXT_SCRIPT_VARIABLE_COMPONENT" => { Some(Self::ExtScriptVariableComponent) } @@ -2774,8 +2759,12 @@ impl HollowComponentType { "HOLLOW_COMPONENT_TYPE_ENTITY_PRIORITY_COMPONENT" => { Some(Self::EntityPriorityComponent) } - "HOLLOW_COMPONENT_TYPE_BIG_TV_CHESS_UI_COMPONENT" => Some(Self::BigTvChessUiComponent), - "HOLLOW_COMPONENT_TYPE_GRID_STATE_COMPONENT" => Some(Self::GridStateComponent), + "HOLLOW_COMPONENT_TYPE_BIG_TV_CHESS_UI_COMPONENT" => { + Some(Self::BigTvChessUiComponent) + } + "HOLLOW_COMPONENT_TYPE_GRID_STATE_COMPONENT" => { + Some(Self::GridStateComponent) + } "HOLLOW_COMPONENT_TYPE_SPRING_COMPONENT" => Some(Self::SpringComponent), "HOLLOW_COMPONENT_TYPE_BLOCK_COMPONENT" => Some(Self::BlockComponent), "HOLLOW_COMPONENT_TYPE_CONWAY_LIFE_GAME_MGR_COMPONENT" => { @@ -2787,42 +2776,64 @@ impl HollowComponentType { "HOLLOW_COMPONENT_TYPE_HOLLOW_SNAPSHOT_COMPONENT" => { Some(Self::HollowSnapshotComponent) } - "HOLLOW_COMPONENT_TYPE_HOLLOW_MAP_COMPONENT" => Some(Self::HollowMapComponent), + "HOLLOW_COMPONENT_TYPE_HOLLOW_MAP_COMPONENT" => { + Some(Self::HollowMapComponent) + } "HOLLOW_COMPONENT_TYPE_HOLLOW_PLUGIN_COLLECTION_COMPONENT" => { Some(Self::HollowPluginCollectionComponent) } "HOLLOW_COMPONENT_TYPE_INNER_WORLD_PLUGIN" => Some(Self::InnerWorldPlugin), "HOLLOW_COMPONENT_TYPE_HOLLOW_LIGHT_PLUGIN" => Some(Self::HollowLightPlugin), - "HOLLOW_COMPONENT_TYPE_HOLLOW_NPC_MGR_COMPONENT" => Some(Self::HollowNpcMgrComponent), + "HOLLOW_COMPONENT_TYPE_HOLLOW_NPC_MGR_COMPONENT" => { + Some(Self::HollowNpcMgrComponent) + } "HOLLOW_COMPONENT_TYPE_HOLLOW_TIME_REWIND_COMPONENT" => { Some(Self::HollowTimeRewindComponent) } "HOLLOW_COMPONENT_TYPE_NPC_POS_EXT" => Some(Self::NpcPosExt), - "HOLLOW_COMPONENT_TYPE_CLIENT_STATE_COMPONENT" => Some(Self::ClientStateComponent), + "HOLLOW_COMPONENT_TYPE_CLIENT_STATE_COMPONENT" => { + Some(Self::ClientStateComponent) + } "HOLLOW_COMPONENT_TYPE_PLAYER_POS_EXT" => Some(Self::PlayerPosExt), "HOLLOW_COMPONENT_TYPE_HOLLOW_REPAIR_ZONE_COMPONENT" => { Some(Self::HollowRepairZoneComponent) } - "HOLLOW_COMPONENT_TYPE_HOLLOW_GLOBAL_COMPONENT" => Some(Self::HollowGlobalComponent), + "HOLLOW_COMPONENT_TYPE_HOLLOW_GLOBAL_COMPONENT" => { + Some(Self::HollowGlobalComponent) + } "HOLLOW_COMPONENT_TYPE_AIM_RECT_COMPONENT" => Some(Self::AimRectComponent), - "HOLLOW_COMPONENT_TYPE_SIGNAL_MGR_COMPONENT" => Some(Self::SignalMgrComponent), + "HOLLOW_COMPONENT_TYPE_SIGNAL_MGR_COMPONENT" => { + Some(Self::SignalMgrComponent) + } "HOLLOW_COMPONENT_TYPE_HOLLOW_FLOOR_MGR_COMPONENT" => { Some(Self::HollowFloorMgrComponent) } - "HOLLOW_COMPONENT_TYPE_AREA_CAMERA_COMPONENT" => Some(Self::AreaCameraComponent), + "HOLLOW_COMPONENT_TYPE_AREA_CAMERA_COMPONENT" => { + Some(Self::AreaCameraComponent) + } "HOLLOW_COMPONENT_TYPE_GRID_INNER_WORLD_COMPONENT" => { Some(Self::GridInnerWorldComponent) } - "HOLLOW_COMPONENT_TYPE_HOLLOW_SECTION_COMPONENT" => Some(Self::HollowSectionComponent), + "HOLLOW_COMPONENT_TYPE_HOLLOW_SECTION_COMPONENT" => { + Some(Self::HollowSectionComponent) + } "HOLLOW_COMPONENT_TYPE_BIG_WORLD_COMPONENT" => Some(Self::BigWorldComponent), - "HOLLOW_COMPONENT_TYPE_ELEVATOR_GRID_COMPONENT" => Some(Self::ElevatorGridComponent), + "HOLLOW_COMPONENT_TYPE_ELEVATOR_GRID_COMPONENT" => { + Some(Self::ElevatorGridComponent) + } "HOLLOW_COMPONENT_TYPE_HIDE_COMPONENT" => Some(Self::HideComponent), - "HOLLOW_COMPONENT_TYPE_HOLLOW_SPAWNER_COMPONENT" => Some(Self::HollowSpawnerComponent), + "HOLLOW_COMPONENT_TYPE_HOLLOW_SPAWNER_COMPONENT" => { + Some(Self::HollowSpawnerComponent) + } "HOLLOW_COMPONENT_TYPE_HOLLOW_HACKER_GAME_COMPONENT" => { Some(Self::HollowHackerGameComponent) } - "HOLLOW_COMPONENT_TYPE_POP_INTERACT_COMPONENT" => Some(Self::PopInteractComponent), - "HOLLOW_COMPONENT_TYPE_ABILITY_MARK_COMPONENT" => Some(Self::AbilityMarkComponent), + "HOLLOW_COMPONENT_TYPE_POP_INTERACT_COMPONENT" => { + Some(Self::PopInteractComponent) + } + "HOLLOW_COMPONENT_TYPE_ABILITY_MARK_COMPONENT" => { + Some(Self::AbilityMarkComponent) + } _ => None, } } @@ -3560,7 +3571,9 @@ impl ActionType { Self::AreaCameraModify => "ACTION_TYPE_AREA_CAMERA_MODIFY", Self::TriggerPerformBehavior => "ACTION_TYPE_TRIGGER_PERFORM_BEHAVIOR", Self::SwitchAtmosphere => "ACTION_TYPE_SWITCH_ATMOSPHERE", - Self::ModifyLightDiffusionPoints => "ACTION_TYPE_MODIFY_LIGHT_DIFFUSION_POINTS", + Self::ModifyLightDiffusionPoints => { + "ACTION_TYPE_MODIFY_LIGHT_DIFFUSION_POINTS" + } Self::ModCatName => "ACTION_TYPE_MOD_CAT_NAME", Self::OpenUiGame => "ACTION_TYPE_OPEN_UI_GAME", Self::OpenDialogHollowV2 => "ACTION_TYPE_OPEN_DIALOG_HOLLOW_V2", @@ -3703,12 +3716,16 @@ impl ActionType { Self::ModifyHollowSnake => "ACTION_TYPE_MODIFY_HOLLOW_SNAKE", Self::ChangeHollowNpcApperance => "ACTION_TYPE_CHANGE_HOLLOW_NPC_APPERANCE", Self::OpenBigTvSokobanGame => "ACTION_TYPE_OPEN_BIG_TV_SOKOBAN_GAME", - Self::SetInterconnectedStoryEvent => "ACTION_TYPE_SET_INTERCONNECTED_STORY_EVENT", + Self::SetInterconnectedStoryEvent => { + "ACTION_TYPE_SET_INTERCONNECTED_STORY_EVENT" + } Self::HollowNpcImitate => "ACTION_TYPE_HOLLOW_NPC_IMITATE", Self::TriggerHollowNpcEarlyAct => "ACTION_TYPE_TRIGGER_HOLLOW_NPC_EARLY_ACT", Self::GetAvatarByTag => "ACTION_TYPE_GET_AVATAR_BY_TAG", Self::SetBattleTypeAbyss => "ACTION_TYPE_SET_BATTLE_TYPE_ABYSS", - Self::RemoveEventIdFromRandomPool => "ACTION_TYPE_REMOVE_EVENT_ID_FROM_RANDOM_POOL", + Self::RemoveEventIdFromRandomPool => { + "ACTION_TYPE_REMOVE_EVENT_ID_FROM_RANDOM_POOL" + } Self::RecycleHollowItem => "ACTION_TYPE_RECYCLE_HOLLOW_ITEM", Self::CopyEvent => "ACTION_TYPE_COPY_EVENT", Self::BanCharacter => "ACTION_TYPE_BAN_CHARACTER", @@ -3736,7 +3753,9 @@ impl ActionType { Self::SetInnerWorldMapState => "ACTION_TYPE_SET_INNER_WORLD_MAP_STATE", Self::ListConvert => "ACTION_TYPE_LIST_CONVERT", Self::AbyssGetBattleEvent => "ACTION_TYPE_ABYSS_GET_BATTLE_EVENT", - Self::TriggerEntityBasicBehavior => "ACTION_TYPE_TRIGGER_ENTITY_BASIC_BEHAVIOR", + Self::TriggerEntityBasicBehavior => { + "ACTION_TYPE_TRIGGER_ENTITY_BASIC_BEHAVIOR" + } Self::TriggerEntityMove => "ACTION_TYPE_TRIGGER_ENTITY_MOVE", Self::TriggerEntityTransfer => "ACTION_TYPE_TRIGGER_ENTITY_TRANSFER", Self::TriggerEntityInteract => "ACTION_TYPE_TRIGGER_ENTITY_INTERACT", @@ -3767,7 +3786,9 @@ impl ActionType { Self::ModifyStackingOrder => "ACTION_TYPE_MODIFY_STACKING_ORDER", Self::InitConwayLifeGame => "ACTION_TYPE_INIT_CONWAY_LIFE_GAME", Self::IterateConwayLifeGame => "ACTION_TYPE_ITERATE_CONWAY_LIFE_GAME", - Self::ChangeConwayLifeGameGridState => "ACTION_TYPE_CHANGE_CONWAY_LIFE_GAME_GRID_STATE", + Self::ChangeConwayLifeGameGridState => { + "ACTION_TYPE_CHANGE_CONWAY_LIFE_GAME_GRID_STATE" + } Self::BigTvChessUiController => "ACTION_TYPE_BIG_TV_CHESS_UI_CONTROLLER", Self::SetEntityState => "ACTION_TYPE_SET_ENTITY_STATE", Self::RemoveEntityState => "ACTION_TYPE_REMOVE_ENTITY_STATE", @@ -3783,7 +3804,9 @@ impl ActionType { Self::SetMultiHollowOutSection => "ACTION_TYPE_SET_MULTI_HOLLOW_OUT_SECTION", Self::GetEntityScriptVariable => "ACTION_TYPE_GET_ENTITY_SCRIPT_VARIABLE", Self::RemoveChessboard => "ACTION_TYPE_REMOVE_CHESSBOARD", - Self::BeginTutorialGuideInteract => "ACTION_TYPE_BEGIN_TUTORIAL_GUIDE_INTERACT", + Self::BeginTutorialGuideInteract => { + "ACTION_TYPE_BEGIN_TUTORIAL_GUIDE_INTERACT" + } Self::TimeRewindInteract => "ACTION_TYPE_TIME_REWIND_INTERACT", Self::LimboAvatarCard => "ACTION_TYPE_LIMBO_AVATAR_CARD", Self::LimboCampEvent => "ACTION_TYPE_LIMBO_CAMP_EVENT", @@ -3791,7 +3814,9 @@ impl ActionType { Self::RemoveFromPool => "ACTION_TYPE_REMOVE_FROM_POOL", Self::ActivateSegmentInteract => "ACTION_TYPE_ACTIVATE_SEGMENT_INTERACT", Self::RecordUseInitiativeItem => "ACTION_TYPE_RECORD_USE_INITIATIVE_ITEM", - Self::ModifyMultiHollowOutFloor => "ACTION_TYPE_MODIFY_MULTI_HOLLOW_OUT_FLOOR", + Self::ModifyMultiHollowOutFloor => { + "ACTION_TYPE_MODIFY_MULTI_HOLLOW_OUT_FLOOR" + } Self::SetMultiHollowOutView => "ACTION_TYPE_SET_MULTI_HOLLOW_OUT_VIEW", Self::MarkGridAsElevator => "ACTION_TYPE_MARK_GRID_AS_ELEVATOR", Self::MoveElevatorToSection => "ACTION_TYPE_MOVE_ELEVATOR_TO_SECTION", @@ -3812,9 +3837,13 @@ impl ActionType { Self::RewardWithPerform => "ACTION_TYPE_REWARD_WITH_PERFORM", Self::InitHackerGame => "ACTION_TYPE_INIT_HACKER_GAME", Self::ModifyHackerGameParam => "ACTION_TYPE_MODIFY_HACKER_GAME_PARAM", - Self::ModifyPopInteractComponent => "ACTION_TYPE_MODIFY_POP_INTERACT_COMPONENT", + Self::ModifyPopInteractComponent => { + "ACTION_TYPE_MODIFY_POP_INTERACT_COMPONENT" + } Self::SetLevelGlobalVariable => "ACTION_TYPE_SET_LEVEL_GLOBAL_VARIABLE", - Self::EventModificationByFalling => "ACTION_TYPE_EVENT_MODIFICATION_BY_FALLING", + Self::EventModificationByFalling => { + "ACTION_TYPE_EVENT_MODIFICATION_BY_FALLING" + } Self::TryMoveElevator => "ACTION_TYPE_TRY_MOVE_ELEVATOR", Self::GetEventPoolEvent => "ACTION_TYPE_GET_EVENT_POOL_EVENT", Self::ChessUi3dController => "ACTION_TYPE_CHESS_UI_3D_CONTROLLER", @@ -3825,7 +3854,9 @@ impl ActionType { Self::ChangeInteract => "ACTION_TYPE_CHANGE_INTERACT", Self::InteractFinish => "ACTION_TYPE_INTERACT_FINISH", Self::RemoveMainCityQuestNpc => "ACTION_TYPE_REMOVE_MAIN_CITY_QUEST_NPC", - Self::RemoveMainCityQuestInteract => "ACTION_TYPE_REMOVE_MAIN_CITY_QUEST_INTERACT", + Self::RemoveMainCityQuestInteract => { + "ACTION_TYPE_REMOVE_MAIN_CITY_QUEST_INTERACT" + } Self::ChangeBackSceneInfo => "ACTION_TYPE_CHANGE_BACK_SCENE_INFO", Self::ResetMainCityQuestGroup => "ACTION_TYPE_RESET_MAIN_CITY_QUEST_GROUP", Self::UnlockHollowQuest => "ACTION_TYPE_UNLOCK_HOLLOW_QUEST", @@ -3890,7 +3921,9 @@ impl ActionType { Self::EatRamen => "ACTION_TYPE_EAT_RAMEN", Self::OngoingTips => "ACTION_TYPE_ONGOING_TIPS", Self::SetSound => "ACTION_TYPE_SET_SOUND", - Self::GenCampIdleDynamicTextItem => "ACTION_TYPE_GEN_CAMP_IDLE_DYNAMIC_TEXT_ITEM", + Self::GenCampIdleDynamicTextItem => { + "ACTION_TYPE_GEN_CAMP_IDLE_DYNAMIC_TEXT_ITEM" + } Self::MapChooseByEvent => "ACTION_TYPE_MAP_CHOOSE_BY_EVENT", Self::MapChooseByLayer => "ACTION_TYPE_MAP_CHOOSE_BY_LAYER", Self::MapChooseByNum => "ACTION_TYPE_MAP_CHOOSE_BY_NUM", @@ -3955,7 +3988,9 @@ impl ActionType { "ACTION_TYPE_STOP_ANIM" => Some(Self::StopAnim), "ACTION_TYPE_GET_TRUST" => Some(Self::GetTrust), "ACTION_TYPE_PLAY_DIALOG_ANIM" => Some(Self::PlayDialogAnim), - "ACTION_TYPE_UNFREEZE_CHESSBOARD_CAMERA" => Some(Self::UnfreezeChessboardCamera), + "ACTION_TYPE_UNFREEZE_CHESSBOARD_CAMERA" => { + Some(Self::UnfreezeChessboardCamera) + } "ACTION_TYPE_WAIT_TIPS_END" => Some(Self::WaitTipsEnd), "ACTION_TYPE_BEGIN_TUTORIAL_GUIDE" => Some(Self::BeginTutorialGuide), "ACTION_TYPE_FOCUS_CAMERA" => Some(Self::FocusCamera), @@ -3971,16 +4006,22 @@ impl ActionType { "ACTION_TYPE_GACHA_ITEM_PERFORM" => Some(Self::GachaItemPerform), "ACTION_TYPE_SET_MESSAGE_CLIENT" => Some(Self::SetMessageClient), "ACTION_TYPE_MOD_MAIN_CITY_TIME_CLIENT" => Some(Self::ModMainCityTimeClient), - "ACTION_TYPE_MODIFY_LIGHT_LEVEL_PERFORM" => Some(Self::ModifyLightLevelPerform), + "ACTION_TYPE_MODIFY_LIGHT_LEVEL_PERFORM" => { + Some(Self::ModifyLightLevelPerform) + } "ACTION_TYPE_SET_POSITION" => Some(Self::SetPosition), - "ACTION_TYPE_SET_CHESSBOARD_PERFORM_MODE" => Some(Self::SetChessboardPerformMode), + "ACTION_TYPE_SET_CHESSBOARD_PERFORM_MODE" => { + Some(Self::SetChessboardPerformMode) + } "ACTION_TYPE_TRANSITION" => Some(Self::Transition), "ACTION_TYPE_WAIT_UNTIL_UI_CLOSE" => Some(Self::WaitUntilUiClose), "ACTION_TYPE_WAIT_TRANSITION_END" => Some(Self::WaitTransitionEnd), "ACTION_TYPE_CLOSE_UI" => Some(Self::CloseUi), "ACTION_TYPE_QUIT_PHOTO" => Some(Self::QuitPhoto), "ACTION_TYPE_SHOW_TELEPORT_UI" => Some(Self::ShowTeleportUi), - "ACTION_TYPE_MODIFY_CAMERA_TARGET_SECTION" => Some(Self::ModifyCameraTargetSection), + "ACTION_TYPE_MODIFY_CAMERA_TARGET_SECTION" => { + Some(Self::ModifyCameraTargetSection) + } "ACTION_TYPE_CAMERA_BACK_TO_PLAYER" => Some(Self::CameraBackToPlayer), "ACTION_TYPE_RESET_SCENE_OBJ" => Some(Self::ResetSceneObj), "ACTION_TYPE_MANUAL_ACCELERATE" => Some(Self::ManualAccelerate), @@ -3998,7 +4039,9 @@ impl ActionType { "ACTION_TYPE_AREA_CAMERA_MODIFY" => Some(Self::AreaCameraModify), "ACTION_TYPE_TRIGGER_PERFORM_BEHAVIOR" => Some(Self::TriggerPerformBehavior), "ACTION_TYPE_SWITCH_ATMOSPHERE" => Some(Self::SwitchAtmosphere), - "ACTION_TYPE_MODIFY_LIGHT_DIFFUSION_POINTS" => Some(Self::ModifyLightDiffusionPoints), + "ACTION_TYPE_MODIFY_LIGHT_DIFFUSION_POINTS" => { + Some(Self::ModifyLightDiffusionPoints) + } "ACTION_TYPE_MOD_CAT_NAME" => Some(Self::ModCatName), "ACTION_TYPE_OPEN_UI_GAME" => Some(Self::OpenUiGame), "ACTION_TYPE_OPEN_DIALOG_HOLLOW_V2" => Some(Self::OpenDialogHollowV2), @@ -4032,7 +4075,9 @@ impl ActionType { "ACTION_TYPE_GET_LIST" => Some(Self::GetList), "ACTION_TYPE_START_ACTION" => Some(Self::StartAction), "ACTION_TYPE_SET_STRING" => Some(Self::SetString), - "ACTION_TYPE_SEND_CUSTOM_EVENT_TRACKING" => Some(Self::SendCustomEventTracking), + "ACTION_TYPE_SEND_CUSTOM_EVENT_TRACKING" => { + Some(Self::SendCustomEventTracking) + } "ACTION_TYPE_EMPTY_ACTION" => Some(Self::EmptyAction), "ACTION_TYPE_SET_VECTOR2" => Some(Self::SetVector2), "ACTION_TYPE_SWITCH" => Some(Self::Switch), @@ -4059,7 +4104,9 @@ impl ActionType { "ACTION_TYPE_DROP_CURSE" => Some(Self::DropCurse), "ACTION_TYPE_LOG_HOLLOW" => Some(Self::LogHollow), "ACTION_TYPE_DROP_CARD" => Some(Self::DropCard), - "ACTION_TYPE_CHANGE_HOLLOW_EVENT_WEIGHT" => Some(Self::ChangeHollowEventWeight), + "ACTION_TYPE_CHANGE_HOLLOW_EVENT_WEIGHT" => { + Some(Self::ChangeHollowEventWeight) + } "ACTION_TYPE_REMOVE_CURSE" => Some(Self::RemoveCurse), "ACTION_TYPE_HIDE_NODE" => Some(Self::HideNode), "ACTION_TYPE_SET_CHALLENGE" => Some(Self::SetChallenge), @@ -4103,7 +4150,9 @@ impl ActionType { "ACTION_TYPE_GO_TO_NEXT_LAYER" => Some(Self::GoToNextLayer), "ACTION_TYPE_GO_TO_CHESSBOARD" => Some(Self::GoToChessboard), "ACTION_TYPE_GET_PRE_CHESSBOARD" => Some(Self::GetPreChessboard), - "ACTION_TYPE_TRIGGER_HOLLOW_NPC_BEHAVIOR" => Some(Self::TriggerHollowNpcBehavior), + "ACTION_TYPE_TRIGGER_HOLLOW_NPC_BEHAVIOR" => { + Some(Self::TriggerHollowNpcBehavior) + } "ACTION_TYPE_SHOW_LAYER_RESULT" => Some(Self::ShowLayerResult), "ACTION_TYPE_HENSHIN" => Some(Self::Henshin), "ACTION_TYPE_CREATE_HOLLOW_NPC" => Some(Self::CreateHollowNpc), @@ -4115,7 +4164,9 @@ impl ActionType { "ACTION_TYPE_HP_ACT_HOLLOW" => Some(Self::HpActHollow), "ACTION_TYPE_BAN_HOLLOW_EVENT" => Some(Self::BanHollowEvent), "ACTION_TYPE_COORDINATE_TRANSFORM" => Some(Self::CoordinateTransform), - "ACTION_TYPE_REGISTER_VARIABLE_CONDITION" => Some(Self::RegisterVariableCondition), + "ACTION_TYPE_REGISTER_VARIABLE_CONDITION" => { + Some(Self::RegisterVariableCondition) + } "ACTION_TYPE_ON_OFF_CATEGORY" => Some(Self::OnOffCategory), "ACTION_TYPE_RESET_BIG_TV_SNAPSHOT" => Some(Self::ResetBigTvSnapshot), "ACTION_TYPE_BIG_TV_SUPPORT_SNAPSHOT" => Some(Self::BigTvSupportSnapshot), @@ -4131,7 +4182,9 @@ impl ActionType { "ACTION_TYPE_TRIGGER_HOLLOW_EVENT" => Some(Self::TriggerHollowEvent), "ACTION_TYPE_BREAK_DIALOG_ANIM" => Some(Self::BreakDialogAnim), "ACTION_TYPE_MOVE_BIG_TV" => Some(Self::MoveBigTv), - "ACTION_TYPE_SET_NEXT_LAYER_CHESSBOARD_ID" => Some(Self::SetNextLayerChessboardId), + "ACTION_TYPE_SET_NEXT_LAYER_CHESSBOARD_ID" => { + Some(Self::SetNextLayerChessboardId) + } "ACTION_TYPE_GET_BOSS_BATTLE_EVENT" => Some(Self::GetBossBattleEvent), "ACTION_TYPE_CREATE_HOLLOW_SNAKE" => Some(Self::CreateHollowSnake), "ACTION_TYPE_SET_GRID_STAMINA_STATE" => Some(Self::SetGridStaminaState), @@ -4139,11 +4192,17 @@ impl ActionType { "ACTION_TYPE_SPLIT_HOLLOW_SNAKE" => Some(Self::SplitHollowSnake), "ACTION_TYPE_GET_HOLLOW_SNAKE_INFO" => Some(Self::GetHollowSnakeInfo), "ACTION_TYPE_MODIFY_HOLLOW_SNAKE" => Some(Self::ModifyHollowSnake), - "ACTION_TYPE_CHANGE_HOLLOW_NPC_APPERANCE" => Some(Self::ChangeHollowNpcApperance), + "ACTION_TYPE_CHANGE_HOLLOW_NPC_APPERANCE" => { + Some(Self::ChangeHollowNpcApperance) + } "ACTION_TYPE_OPEN_BIG_TV_SOKOBAN_GAME" => Some(Self::OpenBigTvSokobanGame), - "ACTION_TYPE_SET_INTERCONNECTED_STORY_EVENT" => Some(Self::SetInterconnectedStoryEvent), + "ACTION_TYPE_SET_INTERCONNECTED_STORY_EVENT" => { + Some(Self::SetInterconnectedStoryEvent) + } "ACTION_TYPE_HOLLOW_NPC_IMITATE" => Some(Self::HollowNpcImitate), - "ACTION_TYPE_TRIGGER_HOLLOW_NPC_EARLY_ACT" => Some(Self::TriggerHollowNpcEarlyAct), + "ACTION_TYPE_TRIGGER_HOLLOW_NPC_EARLY_ACT" => { + Some(Self::TriggerHollowNpcEarlyAct) + } "ACTION_TYPE_GET_AVATAR_BY_TAG" => Some(Self::GetAvatarByTag), "ACTION_TYPE_SET_BATTLE_TYPE_ABYSS" => Some(Self::SetBattleTypeAbyss), "ACTION_TYPE_REMOVE_EVENT_ID_FROM_RANDOM_POOL" => { @@ -4156,7 +4215,9 @@ impl ActionType { "ACTION_TYPE_SET_NPC_ATTR" => Some(Self::SetNpcAttr), "ACTION_TYPE_GET_NPC_ATTR" => Some(Self::GetNpcAttr), "ACTION_TYPE_HIT_NPC" => Some(Self::HitNpc), - "ACTION_TYPE_GET_PLAYER_HOLLOW_MOVE_PATH" => Some(Self::GetPlayerHollowMovePath), + "ACTION_TYPE_GET_PLAYER_HOLLOW_MOVE_PATH" => { + Some(Self::GetPlayerHollowMovePath) + } "ACTION_TYPE_GET_BIG_TV_INDEX" => Some(Self::GetBigTvIndex), "ACTION_TYPE_CLEAR_NPC" => Some(Self::ClearNpc), "ACTION_TYPE_SAVE_MINI_SNAPSHOT" => Some(Self::SaveMiniSnapshot), @@ -4176,7 +4237,9 @@ impl ActionType { "ACTION_TYPE_SET_INNER_WORLD_MAP_STATE" => Some(Self::SetInnerWorldMapState), "ACTION_TYPE_LIST_CONVERT" => Some(Self::ListConvert), "ACTION_TYPE_ABYSS_GET_BATTLE_EVENT" => Some(Self::AbyssGetBattleEvent), - "ACTION_TYPE_TRIGGER_ENTITY_BASIC_BEHAVIOR" => Some(Self::TriggerEntityBasicBehavior), + "ACTION_TYPE_TRIGGER_ENTITY_BASIC_BEHAVIOR" => { + Some(Self::TriggerEntityBasicBehavior) + } "ACTION_TYPE_TRIGGER_ENTITY_MOVE" => Some(Self::TriggerEntityMove), "ACTION_TYPE_TRIGGER_ENTITY_TRANSFER" => Some(Self::TriggerEntityTransfer), "ACTION_TYPE_TRIGGER_ENTITY_INTERACT" => Some(Self::TriggerEntityInteract), @@ -4210,30 +4273,46 @@ impl ActionType { "ACTION_TYPE_CHANGE_CONWAY_LIFE_GAME_GRID_STATE" => { Some(Self::ChangeConwayLifeGameGridState) } - "ACTION_TYPE_BIG_TV_CHESS_UI_CONTROLLER" => Some(Self::BigTvChessUiController), + "ACTION_TYPE_BIG_TV_CHESS_UI_CONTROLLER" => { + Some(Self::BigTvChessUiController) + } "ACTION_TYPE_SET_ENTITY_STATE" => Some(Self::SetEntityState), "ACTION_TYPE_REMOVE_ENTITY_STATE" => Some(Self::RemoveEntityState), "ACTION_TYPE_GET_EVENT_TEXTURE" => Some(Self::GetEventTexture), "ACTION_TYPE_MODIFY_COMPONENT" => Some(Self::ModifyComponent), "ACTION_TYPE_CHANGE_HOLLOW_SOUND_STATE" => Some(Self::ChangeHollowSoundState), - "ACTION_TYPE_SET_ENTITY_SCRIPT_VARIABLE" => Some(Self::SetEntityScriptVariable), + "ACTION_TYPE_SET_ENTITY_SCRIPT_VARIABLE" => { + Some(Self::SetEntityScriptVariable) + } "ACTION_TYPE_CREATE_SIGNAL" => Some(Self::CreateSignal), "ACTION_TYPE_SUBSCRIBE_SIGNAL" => Some(Self::SubscribeSignal), "ACTION_TYPE_UNSUBSCRIBE_SIGNAL" => Some(Self::UnsubscribeSignal), "ACTION_TYPE_SEND_SIGNAL" => Some(Self::SendSignal), "ACTION_TYPE_DESTROY_SIGNAL" => Some(Self::DestroySignal), - "ACTION_TYPE_SET_MULTI_HOLLOW_OUT_SECTION" => Some(Self::SetMultiHollowOutSection), - "ACTION_TYPE_GET_ENTITY_SCRIPT_VARIABLE" => Some(Self::GetEntityScriptVariable), + "ACTION_TYPE_SET_MULTI_HOLLOW_OUT_SECTION" => { + Some(Self::SetMultiHollowOutSection) + } + "ACTION_TYPE_GET_ENTITY_SCRIPT_VARIABLE" => { + Some(Self::GetEntityScriptVariable) + } "ACTION_TYPE_REMOVE_CHESSBOARD" => Some(Self::RemoveChessboard), - "ACTION_TYPE_BEGIN_TUTORIAL_GUIDE_INTERACT" => Some(Self::BeginTutorialGuideInteract), + "ACTION_TYPE_BEGIN_TUTORIAL_GUIDE_INTERACT" => { + Some(Self::BeginTutorialGuideInteract) + } "ACTION_TYPE_TIME_REWIND_INTERACT" => Some(Self::TimeRewindInteract), "ACTION_TYPE_LIMBO_AVATAR_CARD" => Some(Self::LimboAvatarCard), "ACTION_TYPE_LIMBO_CAMP_EVENT" => Some(Self::LimboCampEvent), "ACTION_TYPE_MODIFY_AIM_RECT_COMPONENT" => Some(Self::ModifyAimRectComponent), "ACTION_TYPE_REMOVE_FROM_POOL" => Some(Self::RemoveFromPool), - "ACTION_TYPE_ACTIVATE_SEGMENT_INTERACT" => Some(Self::ActivateSegmentInteract), - "ACTION_TYPE_RECORD_USE_INITIATIVE_ITEM" => Some(Self::RecordUseInitiativeItem), - "ACTION_TYPE_MODIFY_MULTI_HOLLOW_OUT_FLOOR" => Some(Self::ModifyMultiHollowOutFloor), + "ACTION_TYPE_ACTIVATE_SEGMENT_INTERACT" => { + Some(Self::ActivateSegmentInteract) + } + "ACTION_TYPE_RECORD_USE_INITIATIVE_ITEM" => { + Some(Self::RecordUseInitiativeItem) + } + "ACTION_TYPE_MODIFY_MULTI_HOLLOW_OUT_FLOOR" => { + Some(Self::ModifyMultiHollowOutFloor) + } "ACTION_TYPE_SET_MULTI_HOLLOW_OUT_VIEW" => Some(Self::SetMultiHollowOutView), "ACTION_TYPE_MARK_GRID_AS_ELEVATOR" => Some(Self::MarkGridAsElevator), "ACTION_TYPE_MOVE_ELEVATOR_TO_SECTION" => Some(Self::MoveElevatorToSection), @@ -4254,24 +4333,36 @@ impl ActionType { "ACTION_TYPE_REWARD_WITH_PERFORM" => Some(Self::RewardWithPerform), "ACTION_TYPE_INIT_HACKER_GAME" => Some(Self::InitHackerGame), "ACTION_TYPE_MODIFY_HACKER_GAME_PARAM" => Some(Self::ModifyHackerGameParam), - "ACTION_TYPE_MODIFY_POP_INTERACT_COMPONENT" => Some(Self::ModifyPopInteractComponent), + "ACTION_TYPE_MODIFY_POP_INTERACT_COMPONENT" => { + Some(Self::ModifyPopInteractComponent) + } "ACTION_TYPE_SET_LEVEL_GLOBAL_VARIABLE" => Some(Self::SetLevelGlobalVariable), - "ACTION_TYPE_EVENT_MODIFICATION_BY_FALLING" => Some(Self::EventModificationByFalling), + "ACTION_TYPE_EVENT_MODIFICATION_BY_FALLING" => { + Some(Self::EventModificationByFalling) + } "ACTION_TYPE_TRY_MOVE_ELEVATOR" => Some(Self::TryMoveElevator), "ACTION_TYPE_GET_EVENT_POOL_EVENT" => Some(Self::GetEventPoolEvent), "ACTION_TYPE_CHESS_UI_3D_CONTROLLER" => Some(Self::ChessUi3dController), - "ACTION_TYPE_HOLLOW_GAME_FINISH_TO_LEVEL" => Some(Self::HollowGameFinishToLevel), - "ACTION_TYPE_CHESSBOARD_SOKOBAN_UI_INFO" => Some(Self::ChessboardSokobanUiInfo), + "ACTION_TYPE_HOLLOW_GAME_FINISH_TO_LEVEL" => { + Some(Self::HollowGameFinishToLevel) + } + "ACTION_TYPE_CHESSBOARD_SOKOBAN_UI_INFO" => { + Some(Self::ChessboardSokobanUiInfo) + } "ACTION_TYPE_CREATE_NPC" => Some(Self::CreateNpc), "ACTION_TYPE_SET_QUEST_PHASE" => Some(Self::SetQuestPhase), "ACTION_TYPE_CHANGE_INTERACT" => Some(Self::ChangeInteract), "ACTION_TYPE_INTERACT_FINISH" => Some(Self::InteractFinish), - "ACTION_TYPE_REMOVE_MAIN_CITY_QUEST_NPC" => Some(Self::RemoveMainCityQuestNpc), + "ACTION_TYPE_REMOVE_MAIN_CITY_QUEST_NPC" => { + Some(Self::RemoveMainCityQuestNpc) + } "ACTION_TYPE_REMOVE_MAIN_CITY_QUEST_INTERACT" => { Some(Self::RemoveMainCityQuestInteract) } "ACTION_TYPE_CHANGE_BACK_SCENE_INFO" => Some(Self::ChangeBackSceneInfo), - "ACTION_TYPE_RESET_MAIN_CITY_QUEST_GROUP" => Some(Self::ResetMainCityQuestGroup), + "ACTION_TYPE_RESET_MAIN_CITY_QUEST_GROUP" => { + Some(Self::ResetMainCityQuestGroup) + } "ACTION_TYPE_UNLOCK_HOLLOW_QUEST" => Some(Self::UnlockHollowQuest), "ACTION_TYPE_SET_NPC_VISIBLE" => Some(Self::SetNpcVisible), "ACTION_TYPE_REMOVE_INTERACT" => Some(Self::RemoveInteract), @@ -4285,7 +4376,9 @@ impl ActionType { "ACTION_TYPE_SWITCH_MAIN_CHARACTER" => Some(Self::SwitchMainCharacter), "ACTION_TYPE_SET_LAND_EVENT_FINISH" => Some(Self::SetLandEventFinish), "ACTION_TYPE_SET_BGM" => Some(Self::SetBgm), - "ACTION_TYPE_SET_MAIN_CITY_OBJECT_STATE" => Some(Self::SetMainCityObjectState), + "ACTION_TYPE_SET_MAIN_CITY_OBJECT_STATE" => { + Some(Self::SetMainCityObjectState) + } "ACTION_TYPE_EVENT_CHOICE" => Some(Self::EventChoice), "ACTION_TYPE_CREATE_MOVE_NPC" => Some(Self::CreateMoveNpc), "ACTION_TYPE_CHANGE_GUIDE_POINT" => Some(Self::ChangeGuidePoint), @@ -4294,8 +4387,12 @@ impl ActionType { "ACTION_TYPE_SET_FIRST_MEET" => Some(Self::SetFirstMeet), "ACTION_TYPE_CREATE_CAMERA_ZONE" => Some(Self::CreateCameraZone), "ACTION_TYPE_SET_MAIN_CITY_TIME" => Some(Self::SetMainCityTime), - "ACTION_TYPE_NEXT_MAIN_CITY_TIME_PERIOD" => Some(Self::NextMainCityTimePeriod), - "ACTION_TYPE_PLAYER_SWITCH_MAIN_CHARACTER" => Some(Self::PlayerSwitchMainCharacter), + "ACTION_TYPE_NEXT_MAIN_CITY_TIME_PERIOD" => { + Some(Self::NextMainCityTimePeriod) + } + "ACTION_TYPE_PLAYER_SWITCH_MAIN_CHARACTER" => { + Some(Self::PlayerSwitchMainCharacter) + } "ACTION_TYPE_END_TRANSITION" => Some(Self::EndTransition), "ACTION_TYPE_ADD_VHS_FLOW_BUFF" => Some(Self::AddVhsFlowBuff), "ACTION_TYPE_ACTIVATE_PHOTO_ID" => Some(Self::ActivatePhotoId), @@ -4303,7 +4400,9 @@ impl ActionType { "ACTION_TYPE_SET_TRASH_NEW_FLAG" => Some(Self::SetTrashNewFlag), "ACTION_TYPE_USE_LAST_TIME" => Some(Self::UseLastTime), "ACTION_TYPE_OCCUPY_OVERNIGHT" => Some(Self::OccupyOvernight), - "ACTION_TYPE_SHOW_PHOTO_QUEST_FINISH_TIP" => Some(Self::ShowPhotoQuestFinishTip), + "ACTION_TYPE_SHOW_PHOTO_QUEST_FINISH_TIP" => { + Some(Self::ShowPhotoQuestFinishTip) + } "ACTION_TYPE_ADD_SOUND_AMB" => Some(Self::AddSoundAmb), "ACTION_TYPE_SUBMIT_ITEM" => Some(Self::SubmitItem), "ACTION_TYPE_MOD_TRUST" => Some(Self::ModTrust), @@ -4319,7 +4418,9 @@ impl ActionType { "ACTION_TYPE_OPEN_HALL_GAME" => Some(Self::OpenHallGame), "ACTION_TYPE_ADD_PARTNER_EVENT" => Some(Self::AddPartnerEvent), "ACTION_TYPE_EXEC_OVERNIGHT_EVENT" => Some(Self::ExecOvernightEvent), - "ACTION_TYPE_SOFA_REST_NEXT_TIME_PERIOD" => Some(Self::SofaRestNextTimePeriod), + "ACTION_TYPE_SOFA_REST_NEXT_TIME_PERIOD" => { + Some(Self::SofaRestNextTimePeriod) + } "ACTION_TYPE_BEGIN_UI_GAME" => Some(Self::BeginUiGame), "ACTION_TYPE_PREPARE_DATA" => Some(Self::PrepareData), "ACTION_TYPE_CLEAR_RP_RECOMMEND_RESULT" => Some(Self::ClearRpRecommendResult), @@ -4328,13 +4429,17 @@ impl ActionType { "ACTION_TYPE_CHANGE_NPC_NAME" => Some(Self::ChangeNpcName), "ACTION_TYPE_CREATE_OVA" => Some(Self::CreateOva), "ACTION_TYPE_SET_OVA_STATE" => Some(Self::SetOvaState), - "ACTION_TYPE_SWITCH_MAIN_CHARACTER_GUISE" => Some(Self::SwitchMainCharacterGuise), + "ACTION_TYPE_SWITCH_MAIN_CHARACTER_GUISE" => { + Some(Self::SwitchMainCharacterGuise) + } "ACTION_TYPE_COMPLETE_HALL_GAME" => Some(Self::CompleteHallGame), "ACTION_TYPE_HIDE_MAIN_CONTROL_AVATAR" => Some(Self::HideMainControlAvatar), "ACTION_TYPE_EAT_RAMEN" => Some(Self::EatRamen), "ACTION_TYPE_ONGOING_TIPS" => Some(Self::OngoingTips), "ACTION_TYPE_SET_SOUND" => Some(Self::SetSound), - "ACTION_TYPE_GEN_CAMP_IDLE_DYNAMIC_TEXT_ITEM" => Some(Self::GenCampIdleDynamicTextItem), + "ACTION_TYPE_GEN_CAMP_IDLE_DYNAMIC_TEXT_ITEM" => { + Some(Self::GenCampIdleDynamicTextItem) + } "ACTION_TYPE_MAP_CHOOSE_BY_EVENT" => Some(Self::MapChooseByEvent), "ACTION_TYPE_MAP_CHOOSE_BY_LAYER" => Some(Self::MapChooseByLayer), "ACTION_TYPE_MAP_CHOOSE_BY_NUM" => Some(Self::MapChooseByNum), diff --git a/lib/proto/out/server_only.rs b/lib/proto/out/server_only.rs index 61a87fb..0ac7e51 100644 --- a/lib/proto/out/server_only.rs +++ b/lib/proto/out/server_only.rs @@ -1,5 +1,6 @@ // This file is @generated by prost-build. -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct PlayerData { #[prost(message, optional, tag = "1")] pub basic: ::core::option::Option, @@ -28,7 +29,8 @@ pub struct PlayerData { #[prost(message, optional, tag = "13")] pub map: ::core::option::Option, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct BasicData { #[prost(string, tag = "1")] pub nick_name: ::prost::alloc::string::String, @@ -49,12 +51,14 @@ pub struct BasicData { #[prost(uint32, tag = "9")] pub portrait_id: u32, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AvatarData { #[prost(message, repeated, tag = "1")] pub avatar_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct AvatarItemInfo { #[prost(uint32, tag = "1")] pub id: u32, @@ -87,7 +91,8 @@ pub struct AvatarItemInfo { #[prost(bool, tag = "15")] pub is_favorite: bool, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ItemData { #[prost(message, repeated, tag = "1")] pub item_list: ::prost::alloc::vec::Vec, @@ -100,14 +105,16 @@ pub struct ItemData { #[prost(uint32, tag = "5")] pub item_uid_counter: u32, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GenericItemInfo { #[prost(uint32, tag = "1")] pub id: u32, #[prost(int32, tag = "2")] pub count: i32, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct WeaponItemInfo { #[prost(uint32, tag = "1")] pub uid: u32, @@ -124,7 +131,8 @@ pub struct WeaponItemInfo { #[prost(bool, tag = "7")] pub lock: bool, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct EquipPropertyInfo { #[prost(uint32, tag = "1")] pub property_type: u32, @@ -133,7 +141,8 @@ pub struct EquipPropertyInfo { #[prost(uint32, tag = "3")] pub add_value: u32, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct EquipItemInfo { #[prost(uint32, tag = "1")] pub uid: u32, @@ -152,24 +161,28 @@ pub struct EquipItemInfo { #[prost(message, repeated, tag = "8")] pub sub_properties: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AutoRecoveryItemInfo { #[prost(uint32, tag = "1")] pub buy_times: u32, #[prost(int64, tag = "2")] pub last_recovery_timestamp: i64, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuestData { #[prost(message, repeated, tag = "1")] pub quest_collection_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MainCityQuestInfo { #[prost(uint32, repeated, tag = "1")] pub track_npc_id_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuestInfo { #[prost(uint32, tag = "1")] pub id: u32, @@ -186,7 +199,8 @@ pub struct QuestInfo { #[prost(message, optional, tag = "7")] pub main_city_quest_info: ::core::option::Option, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct QuestCollectionInfo { #[prost(uint32, tag = "1")] pub quest_type: u32, @@ -195,21 +209,24 @@ pub struct QuestCollectionInfo { #[prost(uint32, repeated, tag = "3")] pub finish_quest_id_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ArchiveData { #[prost(uint32, repeated, tag = "1")] pub hollow_archive_id_list: ::prost::alloc::vec::Vec, #[prost(message, repeated, tag = "2")] pub videotape_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct VideotapeInfo { #[prost(uint32, tag = "1")] pub archive_file_id: u32, #[prost(bool, tag = "2")] pub finished: bool, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct HollowData { #[prost(uint32, repeated, tag = "1")] pub hollow_group_list: ::prost::alloc::vec::Vec, @@ -224,7 +241,8 @@ pub struct HollowData { #[prost(uint32, repeated, tag = "6")] pub executed_hollow_event_id_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct HollowInfo { #[prost(uint32, tag = "1")] pub hollow_quest_id: u32, @@ -233,14 +251,17 @@ pub struct HollowInfo { #[prost(uint32, tag = "3")] pub acquired_hollow_challenge_reward: u32, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AbyssData {} -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct BuddyData { #[prost(message, repeated, tag = "1")] pub buddy_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct BuddyItemInfo { #[prost(uint32, tag = "1")] pub id: u32, @@ -259,7 +280,8 @@ pub struct BuddyItemInfo { #[prost(uint32, repeated, tag = "8")] pub taken_rank_up_reward_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MiscData { #[prost(message, optional, tag = "1")] pub switch: ::core::option::Option, @@ -278,14 +300,16 @@ pub struct MiscData { #[prost(message, optional, tag = "8")] pub player_accessory: ::core::option::Option, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct PlayerSkinInfo { #[prost(uint32, tag = "1")] pub player_skin_id: u32, #[prost(uint32, repeated, tag = "2")] pub equipped_accessory_id_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct PlayerAccessoryInfo { #[prost(uint32, tag = "1")] pub avatar_id: u32, @@ -294,24 +318,28 @@ pub struct PlayerAccessoryInfo { #[prost(message, repeated, tag = "3")] pub player_skin_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct PlayerAccessoryData { #[prost(message, repeated, tag = "1")] pub player_accessory_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct BusinessCardData { #[prost(uint32, repeated, tag = "1")] pub unlocked_id_list: ::prost::alloc::vec::Vec, #[prost(uint32, tag = "2")] pub selected_id: u32, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct InputSettingInfo { #[prost(map = "uint32, int32", tag = "1")] pub input_type_map: ::std::collections::HashMap, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SwitchData { #[prost(uint32, repeated, tag = "1")] pub open_system_id_list: ::prost::alloc::vec::Vec, @@ -322,7 +350,8 @@ pub struct SwitchData { #[prost(map = "uint32, message", tag = "4")] pub input_setting_map: ::std::collections::HashMap, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct QuickAccessItem { #[prost(uint32, tag = "1")] pub quick_access_id: u32, @@ -331,19 +360,22 @@ pub struct QuickAccessItem { #[prost(int32, tag = "3")] pub quick_access_type: i32, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct UnlockData { #[prost(int32, repeated, tag = "1")] pub unlocked_id_list: ::prost::alloc::vec::Vec, #[prost(message, repeated, tag = "2")] pub quick_access_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct NewbieData { #[prost(int32, repeated, tag = "1")] pub finished_group_id_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct NewsStandData { #[prost(int32, tag = "1")] pub cur_style: i32, @@ -366,14 +398,16 @@ pub struct NewsStandData { #[prost(int64, tag = "10")] pub last_sign_time: i64, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PostGirlItem { #[prost(uint32, tag = "1")] pub id: u32, #[prost(int64, tag = "2")] pub unlock_time: i64, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct PostGirlData { #[prost(message, repeated, tag = "1")] pub post_girl_item_list: ::prost::alloc::vec::Vec, @@ -382,12 +416,14 @@ pub struct PostGirlData { #[prost(bool, tag = "3")] pub post_girl_random_toggle: bool, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct TeleportUnlockData { #[prost(int32, repeated, tag = "1")] pub unlocked_id_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MainCityData { #[prost(uint32, tag = "3")] pub bgm_id: u32, @@ -410,7 +446,8 @@ pub mod main_city_data { TransformId(::prost::alloc::string::String), } } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SceneData { #[prost(uint64, tag = "1")] pub cur_scene_uid: u64, @@ -421,7 +458,8 @@ pub struct SceneData { #[prost(map = "uint64, message", tag = "4")] pub dungeons: ::std::collections::HashMap, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct SceneInfo { #[prost(uint32, tag = "1")] pub id: u32, @@ -450,7 +488,8 @@ pub mod scene_info { LongFight(super::LongFightSceneInfo), } } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct HallSceneInfo { #[prost(uint32, tag = "1")] pub cur_section_id: u32, @@ -459,7 +498,8 @@ pub struct HallSceneInfo { #[prost(map = "int32, int32", tag = "3")] pub main_city_objects_state: ::std::collections::HashMap, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct UnitInteract { #[prost(int32, tag = "1")] pub tag_id: i32, @@ -480,7 +520,8 @@ pub struct UnitInteract { #[prost(int32, repeated, tag = "9")] pub interact_target_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct HallSceneUnit { #[prost(uint32, tag = "1")] pub npc_tag_id: u32, @@ -489,14 +530,16 @@ pub struct HallSceneUnit { #[prost(map = "uint32, message", tag = "3")] pub interacts: ::std::collections::HashMap, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AttachedGraphInfo { #[prost(uint32, tag = "1")] pub reference_id: u32, #[prost(enumeration = "GraphReferenceType", tag = "2")] pub reference_type: i32, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct EventStateInfo { #[prost(uint64, tag = "1")] pub event_uid: u64, @@ -513,7 +556,8 @@ pub struct EventStateInfo { #[prost(uint32, tag = "7")] pub tag: u32, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct HallSectionInfo { #[prost(uint32, tag = "1")] pub section_id: u32, @@ -526,30 +570,35 @@ pub struct HallSectionInfo { #[prost(uint64, repeated, tag = "5")] pub already_executed_event_uid_list: ::prost::alloc::vec::Vec, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct HollowSceneInfo {} -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct FightSceneInfo { #[prost(string, tag = "1")] pub time_period: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub weather: ::prost::alloc::string::String, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct LongFightSceneInfo { #[prost(string, tag = "1")] pub time_period: ::prost::alloc::string::String, #[prost(string, tag = "2")] pub weather: ::prost::alloc::string::String, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DungeonInfo { #[prost(uint32, tag = "1")] pub quest_id: u32, #[prost(uint32, tag = "2")] pub quest_type: u32, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GachaStatisticsInfo { #[prost(uint32, tag = "1")] pub gacha_id: u32, @@ -564,14 +613,16 @@ pub struct GachaStatisticsInfo { #[prost(bool, tag = "6")] pub optional_up_item_state: bool, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct GachaData { #[prost(message, repeated, tag = "1")] pub gacha_statistics_list: ::prost::alloc::vec::Vec, #[prost(uint32, tag = "2")] pub gacha_random: u32, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MapAreaGroupInfo { #[prost(uint32, tag = "1")] pub group_id: u32, @@ -580,7 +631,8 @@ pub struct MapAreaGroupInfo { #[prost(uint32, tag = "3")] pub area_progress: u32, } -#[derive(::proto_derive::NetCmd, Clone, Copy, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MapAreaStreetInfo { #[prost(uint32, tag = "1")] pub area_id: u32, @@ -595,7 +647,8 @@ pub struct MapAreaStreetInfo { #[prost(bool, tag = "6")] pub new_area_portals_showed: bool, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct MapData { #[prost(message, repeated, tag = "1")] pub area_group_list: ::prost::alloc::vec::Vec, @@ -653,7 +706,8 @@ pub struct PlayerGetDataRsp { #[prost(message, optional, tag = "2")] pub player_data: ::core::option::Option, } -#[derive(::proto_derive::NetCmd, Clone, PartialEq, ::prost::Message)] +#[derive(::proto_derive::NetCmd)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct NetCommand { #[prost(uint32, tag = "1")] pub cmd_id: u32, @@ -700,4 +754,4 @@ pub struct StopPlayerLogicReq { pub struct StopPlayerLogicRsp { #[prost(int32, tag = "1")] pub retcode: i32, -} +} \ No newline at end of file diff --git a/lib/service/src/network/entity.rs b/lib/service/src/network/entity.rs index c0fbb74..7ba0b34 100644 --- a/lib/service/src/network/entity.rs +++ b/lib/service/src/network/entity.rs @@ -96,6 +96,8 @@ impl NetworkEntity { listener: Arc, encryption_state: Arc, ) { + const MAX_PACKET_SIZE: usize = 0x100000; + let mut receive_buffer = vec![0u8; 16384]; let mut recv_index = 0; @@ -117,7 +119,18 @@ impl NetworkEntity { encryption_state.xor(&mut packet.body); listener.on_receive(id, packet); } - Err(DecodeError::Incomplete(_, _)) => break Ok(()), + Err(DecodeError::Incomplete(required, _)) => { + if required > receive_buffer.len() { + if required > MAX_PACKET_SIZE { + error!("too big packet received, size: {required}"); + break Err(()); + } + + receive_buffer.resize(required, 0); + } + + break Ok(()); + }, Err(err) => { error!("failed to decode incoming packet: {err}"); break Err(()); diff --git a/servers/game-server/src/handlers/avatar.rs b/servers/game-server/src/handlers/avatar.rs index 6874412..76b979e 100644 --- a/servers/game-server/src/handlers/avatar.rs +++ b/servers/game-server/src/handlers/avatar.rs @@ -1,10 +1,19 @@ use vivian_codegen::{handlers, required_state}; use vivian_logic::item::EItemType; use vivian_proto::{ - AvatarFavoriteCsReq, AvatarFavoriteScRsp, AvatarLevelUpCsReq, AvatarLevelUpScRsp, AvatarShowWeaponCsReq, AvatarShowWeaponScRsp, AvatarSkinDressCsReq, AvatarSkinDressScRsp, AvatarSkinUnDressCsReq, AvatarSkinUnDressScRsp, EquipmentDressCsReq, EquipmentDressScRsp, EquipmentSuitDressCsReq, EquipmentSuitDressScRsp, EquipmentUnDressCsReq, EquipmentUnDressScRsp, GetAvatarDataCsReq, GetAvatarDataScRsp, GetAvatarRecommendEquipCsReq, GetAvatarRecommendEquipScRsp, ItemRewardInfo, WeaponDressCsReq, WeaponDressScRsp, WeaponUnDressCsReq, WeaponUnDressScRsp + AvatarFavoriteCsReq, AvatarFavoriteScRsp, AvatarLevelUpCsReq, AvatarLevelUpScRsp, + AvatarShowWeaponCsReq, AvatarShowWeaponScRsp, AvatarSkinDressCsReq, AvatarSkinDressScRsp, + AvatarSkinUnDressCsReq, AvatarSkinUnDressScRsp, EquipmentDressCsReq, EquipmentDressScRsp, + EquipmentSuitDressCsReq, EquipmentSuitDressScRsp, EquipmentUnDressCsReq, EquipmentUnDressScRsp, + GetAvatarDataCsReq, GetAvatarDataScRsp, GetAvatarRecommendEquipCsReq, + GetAvatarRecommendEquipScRsp, ItemRewardInfo, WeaponDressCsReq, WeaponDressScRsp, + WeaponUnDressCsReq, WeaponUnDressScRsp, }; -use crate::{sync::SyncType, util::{avatar_util, item_util}}; +use crate::{ + sync::SyncType, + util::{avatar_util, item_util}, +}; use super::NetContext; @@ -351,10 +360,7 @@ impl AvatarHandler { avatar_util::dress_equip( context.player, request.avatar_id, - ( - request.equip_uid, - request.dress_index, - ), + (request.equip_uid, request.dress_index), ); EquipmentDressScRsp { retcode: 0 } @@ -370,14 +376,11 @@ impl AvatarHandler { .avatar_map .get_mut(&request.avatar_id) { - request - .undress_index_list - .iter() - .for_each(|undress_index| { - avatar - .dressed_equip_map - .retain(|_, index| index != undress_index); - }); + request.undress_index_list.iter().for_each(|undress_index| { + avatar + .dressed_equip_map + .retain(|_, index| index != undress_index); + }); EquipmentUnDressScRsp { retcode: 0 } } else { @@ -397,33 +400,23 @@ impl AvatarHandler { return EquipmentSuitDressScRsp { retcode: 1 }; } - if !request - .param_list - .iter() - .fold(true, |v, param| - v && context + if !request.param_list.iter().all(|param| { + context .player .item_model .equip_map .contains_key(¶m.equip_uid) - ) - { + }) { return EquipmentSuitDressScRsp { retcode: 1 }; } - request - .param_list - .iter() - .for_each(|param| { - avatar_util::dress_equip( - context.player, - request.avatar_id, - ( - param.equip_uid, - param.dress_index, - ), - ); - }); + request.param_list.iter().for_each(|param| { + avatar_util::dress_equip( + context.player, + request.avatar_id, + (param.equip_uid, param.dress_index), + ); + }); EquipmentSuitDressScRsp { retcode: 0 } } diff --git a/servers/game-server/src/util/item_util.rs b/servers/game-server/src/util/item_util.rs index 364fa59..bd5c0aa 100644 --- a/servers/game-server/src/util/item_util.rs +++ b/servers/game-server/src/util/item_util.rs @@ -51,7 +51,9 @@ pub fn add_items_on_first_login(player: &mut Player) { // Generate some Drive Discs for now let rng = &mut rand::thread_rng(); - let properties_map: [(u32, Vec, u32, Vec, u32); 19] = [ + + type IntVec = Vec; + let properties_map: [(u32, IntVec, u32, IntVec, u32); 19] = [ (11103, vec![1], 550, vec![1, 2, 3, 4, 5, 6], 112), (11102, vec![4, 5, 6], 750, vec![1, 2, 3, 4, 5, 6], 300), (12103, vec![2], 79, vec![1, 2, 3, 4, 5, 6], 19), @@ -72,7 +74,8 @@ pub fn add_items_on_first_login(player: &mut Player) { (31703, vec![5], 750, vec![], 0), (31503, vec![5], 750, vec![], 0), ]; - for _ in 0..100 { + + for _ in 0..500 { let uid = player.item_model.next_uid(); let id = player @@ -98,11 +101,15 @@ pub fn add_items_on_first_login(player: &mut Player) { for _ in 0..4 { let sub_property = properties_map .iter() - .filter(|p| p.3.contains(&slot) && !sub_properties.contains_key(&p.0)) + .filter(|p| { + p.3.contains(&slot) + && p.0 != main_property.0 + && !sub_properties.contains_key(&p.0) + }) .choose(rng) .map(|p| { let add_value = rng.next_u32() % add_value_mod; - add_value_mod = add_value_mod - add_value; + add_value_mod -= add_value; (p.0, (p.4, 1 + add_value)) }) .unwrap();