Ejemplo n.º 1
0
 public SurrogateDataObject(TextureImageNode owner)
     : base(owner)
 {
     _TextureImageNode = owner;
     _ImageInfoNode    = owner.ImageInfoNode;
     _ImageDataNode    = owner.ImageDataNode;
 }
Ejemplo n.º 2
0
        public TextureNode(ContainerElement elem)
            : base(elem)
        {
            Text = GetTextureName();

            if (!elem.Elements.Select(x => x.Type).SequenceEqual(new uint[] { 0x1, 0x2, 0x2, 0x1, 0x3 }))
            {
                throw new ArgumentException();
            }

            RmdNode oldNode = RmdNodes[3];

            _TextureImageNode = new TextureImageNode(oldNode.Element as ContainerElement);
            Nodes.Insert(3, _TextureImageNode);
            Nodes.Remove(oldNode);

            Nodes[0].Text = "Usage Data";
            Nodes[1].Text = "Name Data";
            Nodes[2].Text = "Unknown";
            Nodes[4].Text = "Ex Data";

            _SurrogateObject = new SurrogateDataObject(this);
        }