Пример #1
0
 public static Matrix4x4?ReadMatrix4x4Nullable(this NetworkReader reader) => reader.ReadBlittableNullable <Matrix4x4>();
Пример #2
0
 public static Plane?ReadPlaneNullable(this NetworkReader reader) => reader.ReadBlittableNullable <Plane>();
Пример #3
0
 public static Ray?ReadRayNullable(this NetworkReader reader) => reader.ReadBlittableNullable <Ray>();
Пример #4
0
 public static Quaternion?ReadQuaternionNullable(this NetworkReader reader) => reader.ReadBlittableNullable <Quaternion>();
Пример #5
0
 public static Rect?ReadRectNullable(this NetworkReader reader) => reader.ReadBlittableNullable <Rect>();
Пример #6
0
 public static Vector3Int?ReadVector3IntNullable(this NetworkReader reader) => reader.ReadBlittableNullable <Vector3Int>();
Пример #7
0
 public static Color32?ReadColor32Nullable(this NetworkReader reader) => reader.ReadBlittableNullable <Color32>();
Пример #8
0
 public static double?ReadDoubleNullable(this NetworkReader reader) => reader.ReadBlittableNullable <double>();
Пример #9
0
 public static decimal?ReadDecimalNullable(this NetworkReader reader) => reader.ReadBlittableNullable <decimal>();
Пример #10
0
 public static ulong?ReadULongNullable(this NetworkReader reader) => reader.ReadBlittableNullable <ulong>();
Пример #11
0
 public static float?ReadFloatNullable(this NetworkReader reader) => reader.ReadBlittableNullable <float>();
Пример #12
0
 public static uint?ReadUIntNullable(this NetworkReader reader) => reader.ReadBlittableNullable <uint>();
Пример #13
0
 public static ushort?ReadUShortNullable(this NetworkReader reader) => reader.ReadBlittableNullable <ushort>();
Пример #14
0
        public static bool?ReadBoolNullable(this NetworkReader reader)
        {
            byte?value = reader.ReadBlittableNullable <byte>();

            return(value.HasValue ? (value.Value != 0) : default(bool?));
        }
Пример #15
0
 public static char?ReadCharNullable(this NetworkReader reader) => (char?)reader.ReadBlittableNullable <ushort>();
Пример #16
0
 public static sbyte?ReadSByteNullable(this NetworkReader reader) => reader.ReadBlittableNullable <sbyte>();