more datatypes

This commit is contained in:
Keegan 2016-03-06 08:02:55 -05:00
commit d94ff5734e
2 changed files with 59 additions and 2 deletions

View file

@ -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",
[

View file

@ -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],