mirror of
https://github.com/lcdr/lu_packets.git
synced 2025-12-30 09:00:38 -06:00
Add BlueprintSaveResponse message
This commit is contained in:
@@ -56,6 +56,7 @@ pub enum ClientMessage {
|
||||
CharacterDeleteResponse(CharacterDeleteResponse) = 11,
|
||||
SubjectGameMessage(SubjectGameMessage) = 12,
|
||||
TransferToWorld(TransferToWorld) = 14,
|
||||
BlueprintSaveResponse(BlueprintSaveResponse) = 21,
|
||||
BlueprintLoadItemResponse(BlueprintLoadItemResponse) = 23,
|
||||
AddFriendRequest(AddFriendRequest) = 27,
|
||||
AddFriendResponse(AddFriendResponse) = 28,
|
||||
@@ -258,6 +259,39 @@ pub struct TransferToWorld {
|
||||
pub is_maintenance_transfer: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
#[repr(u32)]
|
||||
pub enum BlueprintSaveResponseType {
|
||||
EverythingWorked,
|
||||
SaveCancelled,
|
||||
CantBeginTransaction,
|
||||
SaveBlueprintFailed,
|
||||
SaveUgobjectFailed,
|
||||
CantEndTransaction,
|
||||
SaveFilesFailed,
|
||||
BadInput,
|
||||
NotEnoughBricks,
|
||||
InventoryFull,
|
||||
ModelGenerationFailed,
|
||||
PlacementFailed,
|
||||
GmLevelInsufficient,
|
||||
WaitForPreviousSave,
|
||||
FindMatchesFailed,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
pub struct BlueprintSaveResponseModel {
|
||||
pub blueprint_id: ObjId,
|
||||
pub lxfml_compressed: LVec<u32, u8>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
pub struct BlueprintSaveResponse {
|
||||
pub local_id: ObjId,
|
||||
pub reason_code: BlueprintSaveResponseType,
|
||||
pub models: LVec<u32, BlueprintSaveResponseModel>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
pub struct BlueprintLoadItemResponse {
|
||||
pub success: bool,
|
||||
|
||||
BIN
src/world/client/tests/BlueprintSaveResponse.bin
Normal file
BIN
src/world/client/tests/BlueprintSaveResponse.bin
Normal file
Binary file not shown.
12
src/world/client/tests/BlueprintSaveResponse.rs
Normal file
12
src/world/client/tests/BlueprintSaveResponse.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
ClientMessage::BlueprintSaveResponse(
|
||||
BlueprintSaveResponse {
|
||||
local_id: 288230376151713633,
|
||||
reason_code: BlueprintSaveResponseType::EverythingWorked,
|
||||
models: vec![
|
||||
BlueprintSaveResponseModel {
|
||||
blueprint_id: 1152921508340227662,
|
||||
lxfml_compressed: vec![115, 100, 48, 1, 255, 127, 1, 0, 0, 120, 218, 149, 147, 93, 79, 131, 48, 20, 134, 239, 77, 252,15, 77, 175, 25, 148, 143, 174, 37, 1, 23, 141, 206, 152, 108, 209, 108, 46, 241, 182, 66, 183, 84, 161, 44, 5, 141, 254, 123, 219, 142, 241, 101, 188,16, 46, 40, 111, 223, 243, 246, 60, 39, 144, 44, 190, 202, 2, 124, 114, 85,139, 74, 166, 208, 119, 17, 4, 92, 102, 85, 46, 228, 33, 133, 187, 231, 229, 140, 66, 80, 55, 76, 230, 172, 168, 36, 79, 161, 172, 32, 88, 92, 93, 94, 36, 171, 151, 229, 122, 117, 174, 92, 179, 183, 74, 165, 16, 195, 78, 16, 210, 8, 8, 106, 43, 0, 201, 154, 55, 204, 174, 244, 250, 250, 120, 44, 68, 198, 26, 237, 2, 146, 149, 58, 115, 117, 119, 255, 8, 118, 82, 152, 90, 14, 39,153, 232, 119, 166, 119, 142, 186, 81, 186, 177, 65, 72, 151, 49, 112, 136,236, 125, 203, 155, 30, 49, 194, 164, 221, 78, 188, 174, 173, 147, 175, 30,85, 1, 197, 247, 15, 183, 182, 129, 156, 215, 226, 32, 205, 75, 136, 80, 8,91, 155, 54, 62, 49, 213, 252, 237, 3, 37, 107, 184, 18, 172, 168, 83, 24, 132, 14, 114, 172, 37, 171, 148, 133, 215, 21, 14, 234, 179, 204, 177, 122, 194, 131, 180, 70, 211, 213, 251, 74, 149, 173, 221, 55, 9, 250, 238, 159, 51, 228, 70, 200, 92, 152, 4, 1, 138, 48, 141, 105, 100, 182, 78, 170, 143, 3, 76, 9, 141, 209, 60, 192, 163, 115, 60, 115, 80, 15, 225, 25, 138, 51, 186, 103, 217, 219, 249, 12, 166, 146, 108, 196, 65, 228, 219, 239, 186, 225, 101, 55, 167, 129, 214, 199, 89, 241, 127, 24, 62, 118, 231, 150, 35, 164, 126, 52, 143, 73, 64, 156, 8, 99, 23, 133, 113, 76, 40, 10, 72, 24, 133, 4, 59, 126, 48, 119, 169, 117, 33, 236, 19, 76, 168, 15, 193, 171, 38, 217, 240, 125, 61, 250, 44, 188, 105, 95, 35, 165, 229, 185, 87, 213, 199, 113, 194, 51, 208, 186, 172, 169, 54, 82, 76, 101, 226, 217, 95, 65, 175, 126, 0, 99, 151, 229, 87].into(),
|
||||
}
|
||||
].into(),
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user