示例#1
0
        public static ModifierData ReadModifierData(Wrapped wSock)
        {
            var data = new ModifierData
            {
                Uuid      = wSock.readByteArray(16),
                Amount    = wSock.readDouble(),
                Operation = wSock.readByte()
            };

            return(data);
        }
示例#2
0
 public static void WriteModifierData(Wrapped wSock, ModifierData data)
 {
     wSock.Send(data.Uuid);
     wSock.writeDouble(data.Amount);
     wSock.writeByte(data.Operation);
 }
 public static void WriteModifierData(Wrapped wSock, ModifierData Data) {
     wSock.Send(Data.UUID);
     wSock.writeDouble(Data.Amount);
     wSock.writeByte(Data.Operation);
 }
        public static ModifierData ReadModifierData(Wrapped wSock) {
            var Data = new ModifierData();

            Data.UUID = wSock.readByteArray(16); // -- Because f**k Minecraft.
            Data.Amount = wSock.readDouble();
            Data.Operation = wSock.readByte();

            return Data;
        }
 public static void WriteModifierData(Wrapped wSock, ModifierData data) {
     wSock.Send(data.Uuid.ToByteArray());
     wSock.writeDouble(data.Amount);
     wSock.writeByte(data.Operation);
 }
        public static ModifierData ReadModifierData(Wrapped wSock) {
            var data = new ModifierData
            {
                Uuid = new Guid(wSock.readByteArray(16)),
                Amount = wSock.readDouble(),
                Operation = wSock.readByte()
            };

            return data;
        }