Beispiel #1
0
        /// <summary>
        /// The serialise.
        /// </summary>
        /// <param name="serialise">
        /// The serialise.
        /// </param>
        public override void Serialise(IwSerialise serialise)
        {
            base.Serialise(serialise);

            bool someFlag = false;

            serialise.Bool(ref someFlag);
            {
                serialise.UInt32(ref this.flags);
            }

            if (!someFlag)
            {
                {
                    serialise.Int16(ref this.zDepthOfs);
                }
                {
                    serialise.Int16(ref this.zDepthOfsHW);
                }
                {
                    serialise.Colour(ref this.colEmissive);
                }
                {
                    serialise.Colour(ref this.colAmbient);
                }
                {
                    serialise.Colour(ref this.colDiffuse);
                }
                {
                    serialise.Colour(ref this.colSpecular);
                }
                {
                    uint val = 4;
                    serialise.UInt32(ref val);
                }
            }
            {
                // Texture is always presented
                CIwManaged t = this.texture0;
                serialise.ManagedHash("CIwTexture".ToeHash(), ref t);
                this.texture0 = (CIwTexture)t;
            }

            if (!someFlag)
            {
                CIwManaged t = this.texture1;
                serialise.ManagedHash("CIwTexture".ToeHash(), ref t);
                this.texture1 = (CIwTexture)t;
                {
                    CIwManaged val = null;
                    serialise.ManagedHash("?".ToeHash(), ref val);
                }
                {
                    CIwManaged val = null;
                    serialise.ManagedHash("?".ToeHash(), ref val);
                }

                byte isAnimated = 0;
                serialise.UInt8(ref isAnimated);
                if (isAnimated != 0)
                {
                    {
                        byte value = 0;
                        serialise.UInt8(ref value);
                    }

                    serialise.UInt8(ref this.celNum);
                    serialise.UInt8(ref this.celNumU);
                    serialise.UInt8(ref this.celW);
                    serialise.UInt8(ref this.celH);
                    serialise.UInt8(ref this.celPeriod);
                }

                serialise.UInt8(ref this.alphaTestValue);
                {
                    CIwManaged val = null;
                    serialise.ManagedHash("?".ToeHash(), ref val);
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// The serialise.
        /// </summary>
        /// <param name="serialise">
        /// The serialise.
        /// </param>
        public override void Serialise(IwSerialise serialise)
        {
            base.Serialise(serialise);

            bool someFlag = false;
            serialise.Bool(ref someFlag);
            {
                serialise.UInt32(ref this.flags);
            }

            if (!someFlag)
            {
                {
                    serialise.Int16(ref this.zDepthOfs);
                }
                {
                    serialise.Int16(ref this.zDepthOfsHW);
                }
                {
                    serialise.Colour(ref this.colEmissive);
                }
                {
                    serialise.Colour(ref this.colAmbient);
                }
                {
                    serialise.Colour(ref this.colDiffuse);
                }
                {
                    serialise.Colour(ref this.colSpecular);
                }
                {
                    uint val = 4;
                    serialise.UInt32(ref val);
                }
            }
            {
                // Texture is always presented
                CIwManaged t = this.texture0;
                serialise.ManagedHash("CIwTexture".ToeHash(), ref t);
                this.texture0 = (CIwTexture)t;
            }

            if (!someFlag)
            {
                CIwManaged t = this.texture1;
                serialise.ManagedHash("CIwTexture".ToeHash(), ref t);
                this.texture1 = (CIwTexture)t;
                {
                    CIwManaged val = null;
                    serialise.ManagedHash("?".ToeHash(), ref val);
                }
                {
                    CIwManaged val = null;
                    serialise.ManagedHash("?".ToeHash(), ref val);
                }

                byte isAnimated = 0;
                serialise.UInt8(ref isAnimated);
                if (isAnimated != 0)
                {
                    {
                        byte value = 0;
                        serialise.UInt8(ref value);
                    }

                    serialise.UInt8(ref this.celNum);
                    serialise.UInt8(ref this.celNumU);
                    serialise.UInt8(ref this.celW);
                    serialise.UInt8(ref this.celH);
                    serialise.UInt8(ref this.celPeriod);
                }

                serialise.UInt8(ref this.alphaTestValue);
                {
                    CIwManaged val = null;
                    serialise.ManagedHash("?".ToeHash(), ref val);
                }
            }
        }