Пример #1
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteBool(hasPosition);
     if (hasPosition == true)
     {
         _buffer.WriteBigEndianUlong(position);
     }
 }
Пример #2
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteBool(unique);
     _buffer.WriteLittleEndianTriad(first);
     if (unique == false)
     {
         _buffer.WriteLittleEndianTriad(last);
     }
 }
Пример #3
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteUuid(uuid);
     _buffer.WriteBool(hasDisplayName);
     if (hasDisplayName == true)
     {
         _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(displayName)); _buffer.WriteString(displayName);
     }
 }
Пример #4
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name);
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(@value)); _buffer.WriteString(@value);
     _buffer.WriteBool(signed);
     if (signed == true)
     {
         _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(signature)); _buffer.WriteString(signature);
     }
 }
Пример #5
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteUuid(uuid);
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name);
     _buffer.WriteVaruint(properties.Length); foreach (Property propertiesChild in properties)
     {
         propertiesChild.EncodeBody(_buffer);
     }
     _buffer.WriteVaruint(gamemode);
     _buffer.WriteVaruint(latency);
     _buffer.WriteBool(hasDisplayName);
     if (hasDisplayName == true)
     {
         _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(displayName)); _buffer.WriteString(displayName);
     }
 }
Пример #6
0
 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);
     }
 }
Пример #7
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteBool(hasUuid);
     _buffer.WriteUuid(uuid);
 }
Пример #8
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name);
     _buffer.WriteLittleEndianUint(type);
     _buffer.WriteBool(optional);
 }
Пример #9
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name);
     _buffer.WriteBool(@value);
     _buffer.WriteBool(unknown2);
 }