예제 #1
0
        public override List <SpecificResource> FindKindredResources(IResourceKey parentKey)
        {
            if (this.thumType == 0)
            {
                return(null);
            }
            if (this.isCWAL)
            {
                return(ResourceGraph.SlurpKindredResources(parentKey, this));
            }

            List <SpecificResource> results = new List <SpecificResource>();
            SpecificResource        sr      = THUM.getItem(this.isPNG,
                                                           this.thumInstance != 0 ? this.thumInstance : parentKey.Instance,
                                                           this.thumType);

            if (sr != null && sr.Resource != null)
            {
                results.Add(sr);
            }
            return(results);
        }