コード例 #1
0
    private void CollectResources(Resource resource, List <Resource> resource_table)
    {
        if (resource.Guid != (ResourceGuid)null)
        {
            resource_table.Add(resource);
        }
        ResourceSet resourceSet = resource as ResourceSet;

        if (resourceSet != null)
        {
            for (int i = 0; i < resourceSet.Count; i++)
            {
                CollectResources(resourceSet.GetResource(i), resource_table);
            }
        }
    }