more datatypes
This commit is contained in:
parent
f88be868fd
commit
d94ff5734e
2 changed files with 59 additions and 2 deletions
|
|
@ -6,6 +6,64 @@
|
|||
"countType":"short"
|
||||
}
|
||||
],
|
||||
"vector3": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "x",
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "f32"
|
||||
}
|
||||
]
|
||||
],
|
||||
"entitylocations": [
|
||||
[
|
||||
"array",
|
||||
{
|
||||
"countType":"i16",
|
||||
"type": [
|
||||
"container",
|
||||
[
|
||||
{
|
||||
"name": "eid",
|
||||
"type": "i64"
|
||||
},
|
||||
{
|
||||
"name": "x",
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
"name": "y",
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
"name": "z",
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
"name": "yaw",
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
"name": "headYaw",
|
||||
"type": "f32"
|
||||
},
|
||||
{
|
||||
"name": "pitch",
|
||||
"type": "f32"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"packet": [
|
||||
"container",
|
||||
[
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ function writeUUID(value, buffer, offset) {
|
|||
}
|
||||
|
||||
module.exports = {
|
||||
'uuid': [readUUID, writeUUID, 16], // done
|
||||
'vector3': [readVector3, writeVector3, sizeOfVector3]
|
||||
'uuid': [readUUID, writeUUID, 16],
|
||||
|
||||
'metadatadictionary': [readLTriad, writeLTriad, 3],
|
||||
'skin': [readIpAddress, writeIpAddress, 4],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue