Ejemplo n.º 1
0
        /// <summary>
        ///     Serializes this instance.
        /// </summary>
        /// <returns>A writable set of structure values.</returns>
        public StructureValueCollection Serialize()
        {
            var result = new StructureValueCollection();

            result.SetFloat("min x", MinX);
            result.SetFloat("max x", MaxX);
            result.SetFloat("min y", MinY);
            result.SetFloat("max y", MaxY);
            result.SetFloat("min z", MinZ);
            result.SetFloat("max z", MaxZ);
            result.SetFloat("min u", MinU);
            result.SetFloat("max u", MaxU);
            result.SetFloat("min v", MinV);
            result.SetFloat("max v", MaxV);
            result.SetInteger("unknown 1", (uint)Unknown1);
            result.SetInteger("unknown 2", (uint)Unknown2);
            result.SetInteger("unknown 3", (uint)Unknown3);
            result.SetInteger("unknown 4", (uint)Unknown4);
            return(result);
        }