Beispiel #1
0
        public static void WriteDouble(this NetworkWriter writer, double value)
        {
            // DEBUG: try to find the exact value that fails.
            //UIntDouble convert = new UIntDouble{doubleValue = value};
            //Debug.Log($"=> NetworkWriter.WriteDouble: {value} => 0x{convert.longValue:X8}");


            writer.WriteBlittable(value);
        }
Beispiel #2
0
 public static void WriteMatrix4x4(this NetworkWriter writer, Matrix4x4 value) => writer.WriteBlittable(value);
Beispiel #3
0
 public static void WriteRay(this NetworkWriter writer, Ray value) => writer.WriteBlittable(value);
Beispiel #4
0
 public static void WritePlane(this NetworkWriter writer, Plane value) => writer.WriteBlittable(value);
Beispiel #5
0
 public static void WriteQuaternion(this NetworkWriter writer, Quaternion value) => writer.WriteBlittable(value);
Beispiel #6
0
 public static void WriteColor32(this NetworkWriter writer, Color32 value) => writer.WriteBlittable(value);
Beispiel #7
0
 public static void WriteVector3Int(this NetworkWriter writer, Vector3Int value) => writer.WriteBlittable(value);
Beispiel #8
0
 public static void WriteDecimal(this NetworkWriter writer, decimal value) => writer.WriteBlittable(value);
Beispiel #9
0
 public static void WriteULong(this NetworkWriter writer, ulong value) => writer.WriteBlittable(value);
Beispiel #10
0
 public static void WriteFloat(this NetworkWriter writer, float value) => writer.WriteBlittable(value);
Beispiel #11
0
 public static void WriteUInt(this NetworkWriter writer, uint value) => writer.WriteBlittable(value);
Beispiel #12
0
 public static void WriteUShort(this NetworkWriter writer, ushort value) => writer.WriteBlittable(value);
Beispiel #13
0
 public static void WriteBool(this NetworkWriter writer, bool value) => writer.WriteBlittable((byte)(value ? 1 : 0));
Beispiel #14
0
 public static void WriteChar(this NetworkWriter writer, char value) => writer.WriteBlittable((ushort)value);
Beispiel #15
0
 public static void WriteSByte(this NetworkWriter writer, sbyte value) => writer.WriteBlittable(value);