Exemplo n.º 1
0
 internal override void Write(ResourceWriter writer)
 {
     writer.WriteInt16(( short )TargetKind);
     writer.WriteInt32(TargetId);
     writer.WriteStringWithHash(Version, TargetName, true);
     writer.WriteResourceList(Layers);
 }
Exemplo n.º 2
0
        internal override void Write(ResourceWriter writer)
        {
            if (RawData != null)
            {
                writer.Write(RawData);
                return;
            }

            if (Version > 0x1104950)
            {
                writer.WriteInt32(( int )Flags);
            }

            writer.WriteResourceList(Animations);
            writer.WriteResourceList(BlendAnimations);

            if (Flags.HasFlag(AnimationPackFlags.Flag4))
            {
                writer.WriteResource(ExtraData);
            }
        }
Exemplo n.º 3
0
        protected override void WriteCore(ResourceWriter writer)
        {
            if (RawData != null)
            {
                writer.Write(RawData);
                return;
            }

            if (Version > 0x1104950)
            {
                writer.WriteInt32(( int )Flags);
            }

            writer.WriteResourceList(Animations);
            writer.WriteResourceList(BlendAnimations);

            if (Flags.HasFlag(AnimationPackFlags.Bit2))
            {
                writer.WriteResource(Bit29Data);
            }
        }