Exemple #1
0
        public bool Serialize(ref object writer)
        {
            if (writer is BinaryWriter)
            {
                BinaryWriter bw = writer as BinaryWriter;

                Vector3 trans  = LclTranslate;
                Vector3 radian = CUtility.ToDegree(CUtility.ToEulerAngle(LclRotation));
                Vector3 scale  = LclScaling;
                CBinaryConverter.Write(bw, ref trans);
                CBinaryConverter.Write(bw, ref radian);
                CBinaryConverter.Write(bw, ref scale);
            }
            else
            {
                return(false);
            }

            return(true);
        }