Beispiel #1
0
        public MaterialNode(ContainerElement elem)
            : base(elem)
        {
            if (RmdNodes.Length > 0 && RmdNodes.First().ElementType == 0x1)
            {
                RmdNodes.First().Text = "Material Data";
            }

            _TextureRefNode = Nodes[1] as TextureRefNode;
            if (_TextureRefNode != null)
            {
                _TextureRefNode.Text = "Texture Reference";
            }

            if (RmdNodes.Length > 1 && RmdNodes.Last().ElementType == 0x3)
            {
                RmdNodes.Last().Text = "Ex Data";
            }


            Text             = string.Format("Material [{0}]", _TextureRefNode.TextureName);
            _SurrogateObject = new SurrogateDataObject(this);
        }
Beispiel #2
0
 public SurrogateDataObject(MaterialNode owner)
     : base(owner)
 {
     _MaterialNode   = owner;
     _TextureRefNode = owner._TextureRefNode;
 }
Beispiel #3
0
 public SurrogateDataObject(TextureRefNode owner)
     : base(owner)
 {
     _TextureRefNode = owner;
 }