Add tests for packet decode/encode (and fix some bugs found by the tests!)
This commit is contained in:
193
testing/packets/ImprovedInstantMessageMessageZL.json
Normal file
193
testing/packets/ImprovedInstantMessageMessageZL.json
Normal file
@@ -0,0 +1,193 @@
|
||||
{
|
||||
"sentAcks": [
|
||||
1906
|
||||
],
|
||||
"receivedAcks": [],
|
||||
"packet": {
|
||||
"packetFlags": 192,
|
||||
"sequenceNumber": 1906,
|
||||
"extraHeader": {
|
||||
"type": "Buffer",
|
||||
"data": []
|
||||
},
|
||||
"message": {
|
||||
"name": "ImprovedInstantMessage",
|
||||
"messageFlags": 20,
|
||||
"id": 4294902014,
|
||||
"AgentData": {
|
||||
"AgentID": {
|
||||
"mUUID": "d1cd5b71-6209-4595-9bf0-771bf689ce00"
|
||||
},
|
||||
"SessionID": {
|
||||
"mUUID": "00000000-0000-0000-0000-000000000000"
|
||||
}
|
||||
},
|
||||
"MessageBlock": {
|
||||
"FromGroup": false,
|
||||
"ToAgentID": {
|
||||
"mUUID": "96b5f431-d0b5-4e9b-88dd-afc0e38a1567"
|
||||
},
|
||||
"ParentEstateID": 1,
|
||||
"RegionID": {
|
||||
"mUUID": "1ccf2f34-ecea-40f5-baff-4f0e4f9e5fea"
|
||||
},
|
||||
"Position": {
|
||||
"values": {
|
||||
"0": 213.23199462890625,
|
||||
"1": 49.27360153198242,
|
||||
"2": 139.94000244140625
|
||||
}
|
||||
},
|
||||
"Offline": 0,
|
||||
"Dialog": 22,
|
||||
"ID": {
|
||||
"mUUID": "e9118e89-16bc-2429-05d7-b978d8a09d63"
|
||||
},
|
||||
"Timestamp": 0,
|
||||
"FromAgentName": {
|
||||
"type": "Buffer",
|
||||
"data": [
|
||||
67,
|
||||
97,
|
||||
115,
|
||||
112,
|
||||
101,
|
||||
114,
|
||||
32,
|
||||
87,
|
||||
97,
|
||||
114,
|
||||
100,
|
||||
101,
|
||||
110,
|
||||
0
|
||||
]
|
||||
},
|
||||
"Message": {
|
||||
"type": "Buffer",
|
||||
"data": [
|
||||
74,
|
||||
111,
|
||||
105,
|
||||
110,
|
||||
32,
|
||||
109,
|
||||
101,
|
||||
32,
|
||||
105,
|
||||
110,
|
||||
32,
|
||||
73,
|
||||
122,
|
||||
97,
|
||||
110,
|
||||
97,
|
||||
103,
|
||||
105,
|
||||
10,
|
||||
104,
|
||||
116,
|
||||
116,
|
||||
112,
|
||||
58,
|
||||
47,
|
||||
47,
|
||||
109,
|
||||
97,
|
||||
112,
|
||||
115,
|
||||
46,
|
||||
115,
|
||||
101,
|
||||
99,
|
||||
111,
|
||||
110,
|
||||
100,
|
||||
108,
|
||||
105,
|
||||
102,
|
||||
101,
|
||||
46,
|
||||
99,
|
||||
111,
|
||||
109,
|
||||
47,
|
||||
115,
|
||||
101,
|
||||
99,
|
||||
111,
|
||||
110,
|
||||
100,
|
||||
108,
|
||||
105,
|
||||
102,
|
||||
101,
|
||||
47,
|
||||
73,
|
||||
122,
|
||||
97,
|
||||
110,
|
||||
97,
|
||||
103,
|
||||
105,
|
||||
47,
|
||||
50,
|
||||
49,
|
||||
51,
|
||||
47,
|
||||
52,
|
||||
57,
|
||||
47,
|
||||
49,
|
||||
52,
|
||||
48,
|
||||
0
|
||||
]
|
||||
},
|
||||
"BinaryBucket": {
|
||||
"type": "Buffer",
|
||||
"data": [
|
||||
50,
|
||||
54,
|
||||
52,
|
||||
52,
|
||||
52,
|
||||
56,
|
||||
124,
|
||||
50,
|
||||
56,
|
||||
50,
|
||||
49,
|
||||
49,
|
||||
50,
|
||||
124,
|
||||
50,
|
||||
49,
|
||||
50,
|
||||
124,
|
||||
52,
|
||||
56,
|
||||
124,
|
||||
49,
|
||||
52,
|
||||
49,
|
||||
124,
|
||||
49,
|
||||
124,
|
||||
49,
|
||||
124,
|
||||
45,
|
||||
48,
|
||||
124,
|
||||
77,
|
||||
32,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"EstateBlock": {
|
||||
"EstateID": 7175
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user