Exemple #1
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            Texture.Read(reader);
            Color.Read(reader);
            PixelInset.Read(reader);
            LeftBorder   = reader.ReadInt32();
            RightBorder  = reader.ReadInt32();
            TopBorder    = reader.ReadInt32();
            BottomBorder = reader.ReadInt32();
        }
Exemple #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add(TextureName, Texture.ExportYAML(container));
            node.Add(ColorName, Color.ExportYAML(container));
            node.Add(PixelInsetName, PixelInset.ExportYAML(container));
            node.Add(LeftBorderName, LeftBorder);
            node.Add(RightBorderName, RightBorder);
            node.Add(TopBorderName, TopBorder);
            node.Add(BottomBorderName, BottomBorder);
            return(node);
        }