Beispiel #1
0
 public ElementTextureRef(int APIversion, EventHandler handler, ElementTextureRef basis, DependentList <TGIBlock> ParentTGIBlocks = null, string RCOLTag = null)
     : this(APIversion, handler, basis.field, ParentTGIBlocks ?? basis._ParentTGIBlocks, RCOLTag ?? basis._RCOLTag)
 {
     if (_RCOLTag == "GEOM")
     {
         index = basis.index;
     }
     else
     {
         data = new GenericRCOLResource.ChunkReference(0, handler, basis.data);
     }
 }
Beispiel #2
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));
            }
        }