protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteVarint(rotationAndIcon); _buffer.WriteUbyte(position.Item1); _buffer.WriteUbyte(position.Item2); _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(label)); _buffer.WriteString(label); _buffer.WriteLittleEndianUint(color); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteVarlong(from); _buffer.WriteVarlong(to); _buffer.WriteUbyte(action); _buffer.WriteUbyte(unknown3); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name); _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(description)); _buffer.WriteString(description); _buffer.WriteUbyte(unknown2); _buffer.WriteUbyte(permissionLevel); _buffer.WriteLittleEndianInt(aliasesEnum); _buffer.WriteVaruint(overloads.Length); foreach (Overload overloadsChild in overloads) { overloadsChild.EncodeBody(_buffer); } }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteUbyte(storageVersion); foreach (byte blockIdsChild in blockIds) { _buffer.WriteUbyte(blockIdsChild); } foreach (byte blockMetasChild in blockMetas) { _buffer.WriteUbyte(blockMetasChild); } }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteUbyte(info); _buffer.WriteBigEndianUshort(length); if ((info & 0x7F) >= 64) { _buffer.WriteLittleEndianTriad(messageIndex); } if ((info & 0x7F) >= 96) { _buffer.WriteLittleEndianTriad(orderIndex); } if ((info & 0x7F) >= 96) { _buffer.WriteUbyte(orderChannel); } if ((info & 0x10) != 0) { split.EncodeBody(_buffer); } _buffer.WriteBytes(payload); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteUbyte(type); if (type == 4) { _buffer.WriteBigEndianUint(ipv4); } if (type == 6) { foreach (byte ipv6Child in ipv6) { _buffer.WriteUbyte(ipv6Child); } } if (type == 6) { foreach (byte unknown3Child in unknown3) { _buffer.WriteUbyte(unknown3Child); } } _buffer.WriteBigEndianUshort(port); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteBigEndianShort(id); if (id > 0) { _buffer.WriteUbyte(count); } if (id > 0) { _buffer.WriteBigEndianUshort(damage); } if (id > 0) { _buffer.WriteBytes(nbt); } }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name); _buffer.WriteUbyte(type); if (type == 1) { _buffer.WriteBool(booleanValue); } if (type == 2) { _buffer.WriteVaruint(integerValue); } if (type == 3) { _buffer.WriteLittleEndianFloat(floatingValue); } }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteVaruint(sections.Length); foreach (Section sectionsChild in sections) { sectionsChild.EncodeBody(_buffer); } foreach (ushort heightsChild in heights) { _buffer.WriteLittleEndianUshort(heightsChild); } foreach (byte biomesChild in biomes) { _buffer.WriteUbyte(biomesChild); } _buffer.WriteVaruint(borders.Length); _buffer.WriteBytes(borders); _buffer.WriteVaruint(extraData.Length); foreach (ExtraData extraDataChild in extraData) { extraDataChild.EncodeBody(_buffer); } _buffer.WriteBytes(blockEntities); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteUbyte(xz); _buffer.WriteUbyte(y); _buffer.WriteVaruint(block); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { item.EncodeBody(_buffer); _buffer.WriteUbyte(craftingSlot); _buffer.WriteUbyte(playerSlot); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteUuid(uuid); _buffer.WriteBigEndianDouble(amount); _buffer.WriteUbyte(operation); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteUbyte(directionAndType); _buffer.WriteUbyte(position.Item1); _buffer.WriteUbyte(position.Item2); }