Write() public method

public Write ( MegaMan.Common.HandlerTransfer info, XmlWriter writer ) : void
info MegaMan.Common.HandlerTransfer
writer System.Xml.XmlWriter
return void
示例#1
0
        public void Write(SceneInfo info, XmlWriter writer)
        {
            writer.WriteStartElement("Scene");

            WriteBase(info, writer);

            writer.WriteAttributeString("duration", info.Duration.ToString());
            writer.WriteAttributeString("canskip", info.CanSkip.ToString());

            foreach (var keyframe in info.KeyFrames)
            {
                WriteKeyframe(keyframe, writer);
            }

            if (info.NextHandler != null)
            {
                _transferWriter.Write(info.NextHandler, writer);
            }

            writer.WriteEndElement();
        }