예제 #1
0
 public void Serialize(InputArchive archive, ref Rectangle value)
 {
     archive.Serialize("Left", ref value.Left);
     archive.Serialize("Top", ref value.Top);
     archive.Serialize("Width", ref value.Width);
     archive.Serialize("Height", ref value.Height);
 }
예제 #2
0
 public void Serialize(InputArchive archive, ref Vector4 value)
 {
     archive.Serialize("X", ref value.X);
     archive.Serialize("Y", ref value.Y);
     archive.Serialize("Z", ref value.Z);
     archive.Serialize("W", ref value.W);
 }
 public void Serialize(InputArchive archive, ref Quaternion value)
 {
     archive.Serialize("X", ref value.X);
     archive.Serialize("Y", ref value.Y);
     archive.Serialize("Z", ref value.Z);
     archive.Serialize("W", ref value.W);
 }
예제 #4
0
 public void Serialize(InputArchive archive, ref Plane value)
 {
     archive.Serialize("X", ref value.Normal.X);
     archive.Serialize("Y", ref value.Normal.Y);
     archive.Serialize("Z", ref value.Normal.Z);
     archive.Serialize("D", ref value.D);
 }
예제 #5
0
        public void Serialize(InputArchive archive, ref T?value)
        {
            bool value2 = false;

            archive.Serialize("HasValue", ref value2);
            if (value2)
            {
                T value3 = default(T);
                archive.Serialize("Value", ref value3);
                value = value3;
            }
        }
예제 #6
0
        public void Serialize(InputArchive archive, ref Color value)
        {
            byte value2 = 0;
            byte value3 = 0;
            byte value4 = 0;
            byte value5 = 0;

            archive.Serialize("R", ref value2);
            archive.Serialize("G", ref value3);
            archive.Serialize("B", ref value4);
            archive.Serialize("A", ref value5);
            value = new Color(value2, value3, value4, value5);
        }
예제 #7
0
 public void Serialize(InputArchive archive, ref Box value)
 {
     archive.Serialize("Left", ref value.Left);
     archive.Serialize("Top", ref value.Top);
     archive.Serialize("Near", ref value.Near);
     archive.Serialize("Width", ref value.Width);
     archive.Serialize("Height", ref value.Height);
     archive.Serialize("Depth", ref value.Depth);
 }
예제 #8
0
 public void Serialize(InputArchive archive, ref long value)
 {
     archive.Serialize(null, ref value);
 }
예제 #9
0
 public void Serialize(InputArchive archive, ref Point2 value)
 {
     archive.Serialize("X", ref value.X);
     archive.Serialize("Y", ref value.Y);
 }
예제 #10
0
 public void Serialize(InputArchive archive, ref Matrix value)
 {
     archive.Serialize("M11", ref value.M11);
     archive.Serialize("M12", ref value.M12);
     archive.Serialize("M13", ref value.M13);
     archive.Serialize("M14", ref value.M14);
     archive.Serialize("M21", ref value.M21);
     archive.Serialize("M22", ref value.M22);
     archive.Serialize("M23", ref value.M23);
     archive.Serialize("M24", ref value.M24);
     archive.Serialize("M31", ref value.M31);
     archive.Serialize("M32", ref value.M32);
     archive.Serialize("M33", ref value.M33);
     archive.Serialize("M34", ref value.M34);
     archive.Serialize("M41", ref value.M41);
     archive.Serialize("M42", ref value.M42);
     archive.Serialize("M43", ref value.M43);
     archive.Serialize("M44", ref value.M44);
 }