Skip to content

Commit 9fa9e4a

Browse files
committed
Implement TransportInfo in MovementInfo
1 parent a4a4428 commit 9fa9e4a

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

schemas/world/types.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,30 @@
211211
{ "name": "z", "type": "float" }
212212
]
213213
},
214+
"Vector4": {
215+
"kind": "struct",
216+
"cpp_namespace": "ember::protocol",
217+
"fields": [
218+
{ "name": "x", "type": "float" },
219+
{ "name": "y", "type": "float" },
220+
{ "name": "z", "type": "float" },
221+
{ "name": "o", "type": "float" }
222+
]
223+
},
224+
"TransportInfo": {
225+
"kind": "struct",
226+
"cpp_namespace": "ember::protocol",
227+
"fields": [
228+
{ "name": "guid", "type": "PackedGuid" },
229+
{ "name": "position", "type": "Vector4" },
230+
{ "name": "timestamp", "type": "uint32" }
231+
]
232+
},
233+
"PackedGuid": {
234+
"kind": "external",
235+
"cpp_namespace": "ember::protocol",
236+
"include": "protocol/types/PackedGuid.h"
237+
},
214238
"MovementInfo": {
215239
"kind": "struct",
216240
"cpp_namespace": "ember::protocol",
@@ -219,6 +243,13 @@
219243
{ "name": "timestamp", "type": "uint32" },
220244
{ "name": "position", "type": "Vector3" },
221245
{ "name": "orientation", "type": "float" },
246+
{
247+
"type": "group",
248+
"when": { "op": "has_flag", "field": "flags", "value": "on_transport" },
249+
"fields": [
250+
{ "name": "transport", "type": "TransportInfo" }
251+
]
252+
},
222253
{
223254
"type": "group",
224255
"when": { "op": "has_flag", "field": "flags", "value": "swimming" },

0 commit comments

Comments
 (0)