public override void Add(ShaderData item) { if (item is ElementTextureRef) { ElementTextureRef element = item as ElementTextureRef; element.ParentTGIBlocks = _ParentTGIBlocks; element.RCOLTag = _RCOLTag; } base.Add(item); }
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); } }
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)); } }