private static HashSet <ResourceData> ScanObjectData(NodeObjectData parentNodeData)
        {
            PropertyAccessorHandler[] resourceProperties = parentNodeData.GetResourceProperties();
            HashSet <ResourceData>    resourceDataSet    = new HashSet <ResourceData>();

            if (resourceProperties != null)
            {
                foreach (PropertyAccessorHandler propertyAccessorHandler in resourceProperties)
                {
                    ResourceItemData resourceItemData = propertyAccessorHandler.GetValue((object)parentNodeData, (object[])null) as ResourceItemData;
                    if ((ResourceData)resourceItemData != (ResourceData)null)
                    {
                        resourceDataSet.Add((ResourceData)resourceItemData);
                    }
                }
            }
            if (parentNodeData.Children != null)
            {
                foreach (NodeObjectData child in parentNodeData.Children)
                {
                    resourceDataSet.UnionWith((IEnumerable <ResourceData>)GameProjectContent.ScanObjectData(child));
                }
            }
            return(resourceDataSet);
        }
        private static HashSet <ResourceData> ScanObjectData(NodeObjectData parentNodeData)
        {
            PropertyAccessorHandler[] resourceProperties = parentNodeData.GetResourceProperties();
            HashSet <ResourceData>    hashSet            = new HashSet <ResourceData>();

            if (resourceProperties != null)
            {
                PropertyAccessorHandler[] array = resourceProperties;
                for (int i = 0; i < array.Length; i++)
                {
                    PropertyAccessorHandler propertyAccessorHandler = array[i];
                    ResourceItemData        resourceItemData        = propertyAccessorHandler.GetValue(parentNodeData, null) as ResourceItemData;
                    if (resourceItemData != null)
                    {
                        hashSet.Add(resourceItemData);
                    }
                }
            }
            if (parentNodeData.Children != null)
            {
                foreach (NodeObjectData current in parentNodeData.Children)
                {
                    hashSet.UnionWith(GameProjectContent.ScanObjectData(current));
                }
            }
            return(hashSet);
        }
        private static HashSet <ResourceData> SearchResourceItemData(GameProjectData projectData)
        {
            HashSet <ResourceData> hashSet  = new HashSet <ResourceData>();
            HashSet <ResourceData> hashSet2 = GameProjectContent.ScanObjectData(projectData.ObjectData);

            if (hashSet2 != null)
            {
                hashSet.UnionWith(hashSet2);
            }
            hashSet2 = GameProjectContent.ScanAnimationData(projectData.Animation);
            if (hashSet2 != null)
            {
                hashSet.UnionWith(hashSet2);
            }
            return(hashSet);
        }
        private static HashSet <ResourceData> SearchResourceItemData(GameProjectData projectData)
        {
            HashSet <ResourceData> resourceDataSet1 = new HashSet <ResourceData>();
            HashSet <ResourceData> resourceDataSet2 = GameProjectContent.ScanObjectData(projectData.ObjectData);

            if (resourceDataSet2 != null)
            {
                resourceDataSet1.UnionWith((IEnumerable <ResourceData>)resourceDataSet2);
            }
            HashSet <ResourceData> resourceDataSet3 = GameProjectContent.ScanAnimationData(projectData.Animation);

            if (resourceDataSet3 != null)
            {
                resourceDataSet1.UnionWith((IEnumerable <ResourceData>)resourceDataSet3);
            }
            return(resourceDataSet1);
        }