Exemplo n.º 1
0
 public override void Add(ShaderData item)
 {
     if (item is ElementTextureRef)
     {
         ElementTextureRef element = item as ElementTextureRef; element.ParentTGIBlocks = _ParentTGIBlocks; element.RCOLTag = _RCOLTag;
     }
     base.Add(item);
 }
Exemplo n.º 2
0
 public ElementTextureRef(EventHandler handler, ElementTextureRef basis,
                          DependentList <TGIBlock> ParentTGIBlocks = null, string RCOLTag = null)
     : this(handler, basis.field, ParentTGIBlocks ?? basis._ParentTGIBlocks, RCOLTag ?? basis._RCOLTag)
 {
     if (_RCOLTag == "GEOM")
     {
         index = basis.index;
     }
     else
     {
         data = new GenericRCOLResource.GenericRCOLResource.ChunkReference(handler, basis.data);
     }
 }
Exemplo n.º 3
0
        public override bool Equals(ShaderData other)
        {
            if (!base.Equals(other))
            {
                return(false);
            }

            ElementTextureRef _other = (ElementTextureRef)other;

            if (_RCOLTag != _other._RCOLTag)
            {
                return(false);
            }

            if (_RCOLTag == "GEOM")
            {
                return(index.Equals(_other.index));
            }
            else
            {
                return(data.Equals(_other.data));
            }
        }