public static void WritePropertyData(Wrapped wSock, PropertyData Data) {
     wSock.writeString(Data.Key);
     wSock.writeDouble(Data.Value);
     wSock.writeShort(Data.ListLength);
     
     for (int x = 0; x < Data.ListLength; x++)
         WriteModifierData(wSock, Data.Modifiers[x]);
 }
 public static void WriteModifierData(Wrapped wSock, ModifierData Data) {
     wSock.Send(Data.UUID);
     wSock.writeDouble(Data.Amount);
     wSock.writeByte(Data.Operation);
 }
Beispiel #3
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x08);
     wSock.writeDouble(X);
     wSock.writeDouble(Y);
     wSock.writeDouble(Z);
     wSock.writeFloat(Yaw);
     wSock.writeFloat(Pitch);
     wSock.writeBool(OnGround);
     wSock.Purge();
 }
Beispiel #4
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x04);
     wSock.writeDouble(X);
     wSock.writeDouble(FeetY);
     wSock.writeDouble(HeadY);
     wSock.writeDouble(Z);
     wSock.writeBool(OnGround);
     wSock.Purge();
 }
Beispiel #5
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x08);
     wSock.writeDouble(X);
     wSock.writeDouble(Y);
     wSock.writeDouble(Z);
     wSock.writeFloat(Yaw);
     wSock.writeFloat(Pitch);
     wSock.writeSByte(Flags);
     wSock.Purge();
 }
 public static void WriteModifierData(Wrapped wSock, ModifierData data) {
     wSock.Send(data.Uuid.ToByteArray());
     wSock.writeDouble(data.Amount);
     wSock.writeByte(data.Operation);
 }
        public static void WritePropertyData(Wrapped wSock, PropertyData data) {
            wSock.writeString(data.Key);
            wSock.writeDouble(data.Value);
            wSock.writeVarInt(data.Modifiers.Length);

            foreach (var modifierData in data.Modifiers)
                WriteModifierData(wSock, modifierData);
        }