Example #1
0
 public static void Put(this NetDataWriter dw, UnityEngine.Vector4 v4)
 {
     dw.Put(HalfTypeUtils.Convert(v4.x));
     dw.Put(HalfTypeUtils.Convert(v4.y));
     dw.Put(HalfTypeUtils.Convert(v4.z));
     dw.Put(HalfTypeUtils.Convert(v4.w));
 }
Example #2
0
 public static void Put(this NetDataWriter dw, UnityEngine.Color color)
 {
     dw.Put(HalfTypeUtils.Convert(color.r));
     dw.Put(HalfTypeUtils.Convert(color.g));
     dw.Put(HalfTypeUtils.Convert(color.b));
     dw.Put(HalfTypeUtils.Convert(color.a));
 }
Example #3
0
 public static UnityEngine.Vector3 GetVector3(this NetDataReader dr)
 {
     return(new UnityEngine.Vector3(HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort())));
 }
Example #4
0
 public static void Put(this NetDataWriter dw, UnityEngine.Vector2 vector)
 {
     dw.Put(HalfTypeUtils.Convert(vector.x));
     dw.Put(HalfTypeUtils.Convert(vector.y));
 }
Example #5
0
 public static UnityEngine.Color GetColor(this NetDataReader dr)
 {
     return(new UnityEngine.Color(HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort()), HalfTypeUtils.Convert(dr.GetUShort())));
 }