예제 #1
0
        public override void Read(AssetStream stream)
        {
            base.Read(stream);

            Mode0 = stream.ReadInt32();
            VectorComponentCount0 = stream.ReadInt32();
            Color0.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                ColorLabel0 = stream.ReadStringAligned();
            }
            Vector0_0.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                VectorLabel0_0 = stream.ReadStringAligned();
            }
            Vector0_1.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                VectorLabel0_1 = stream.ReadStringAligned();
            }
            Vector0_2.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                VectorLabel0_2 = stream.ReadStringAligned();
            }
            Vector0_3.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                VectorLabel0_3 = stream.ReadStringAligned();
            }
            Mode1 = stream.ReadInt32();
            VectorComponentCount1 = stream.ReadInt32();
            Color1.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                ColorLabel1 = stream.ReadStringAligned();
            }
            Vector1_0.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                VectorLabel1_0 = stream.ReadStringAligned();
            }
            Vector1_1.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                VectorLabel1_1 = stream.ReadStringAligned();
            }
            Vector1_2.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                VectorLabel1_2 = stream.ReadStringAligned();
            }
            Vector1_3.Read(stream);
            if (IsReadLabel(stream.Flags))
            {
                VectorLabel1_3 = stream.ReadStringAligned();
            }
        }
예제 #2
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            Mode0 = (ParticleSystemCustomDataMode)reader.ReadInt32();
            VectorComponentCount0 = reader.ReadInt32();
            Color0.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                ColorLabel0 = reader.ReadString();
            }
#endif
            Vector0_0.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                VectorLabel0_0 = reader.ReadString();
            }
#endif
            Vector0_1.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                VectorLabel0_1 = reader.ReadString();
            }
#endif
            Vector0_2.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                VectorLabel0_2 = reader.ReadString();
            }
#endif
            Vector0_3.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                VectorLabel0_3 = reader.ReadString();
            }
#endif
            Mode1 = (ParticleSystemCustomDataMode)reader.ReadInt32();
            VectorComponentCount1 = reader.ReadInt32();
            Color1.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                ColorLabel1 = reader.ReadString();
            }
#endif
            Vector1_0.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                VectorLabel1_0 = reader.ReadString();
            }
#endif
            Vector1_1.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                VectorLabel1_1 = reader.ReadString();
            }
#endif
            Vector1_2.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                VectorLabel1_2 = reader.ReadString();
            }
#endif
            Vector1_3.Read(reader);
#if UNIVERSAL
            if (IsReadLabel(reader.Flags))
            {
                VectorLabel1_3 = reader.ReadString();
            }
#endif
        }