Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package virtual folder structures #19

Closed
2 tasks done
Fydar opened this issue Feb 26, 2020 · 1 comment
Closed
2 tasks done

Package virtual folder structures #19

Fydar opened this issue Feb 26, 2020 · 1 comment
Assignees
Labels
📦 RPGCore.Packages Issue related to the RPGCore.Packages package New feature or request

Comments

@Fydar
Copy link
Owner

Fydar commented Feb 26, 2020

Similar to issue #18 where a new mechanism for querying packages was introduced.

This mechanism for querying packages works by exporting the folder structure of the assets and using this to construct a virtual folder structure API (e.g. IDirectory.Parent, IDirectory.GetDirectories(), e.t.c).

Consumers of this API can display the contents of a package using a tree view or load all of the resources in a directory.

The project explorer will have access to additional directory-related APIs for copying, renaming, deleting and duplicating directories. This is useful for the content explorer described in #20.

These virtual folders could expose APIs for copying the content of the package to disk.

public interface IResource
{
    IDirectory Parent { get; }
}

public interface IDirectory
{
    string Name { get; }
    string FullName { get; }
    IDirectory Parent { get; }
    IResourceCollection Resources { get; }
    IReadOnlyList<IDirectory> Directories { get; }
}

Tasks

  • Implement the basic IDirectory interface for "Package" explorers.
  • Implement the basic IDirectory interface for "Project" explorers.
@Fydar Fydar added the New feature or request label Feb 26, 2020
@Fydar Fydar self-assigned this Feb 26, 2020
@Fydar Fydar added the 📦 RPGCore.Packages Issue related to the RPGCore.Packages package label Feb 26, 2020
@Fydar
Copy link
Owner Author

Fydar commented Oct 19, 2020

Fully implemented, however, the API may be subject to change.

@Fydar Fydar closed this as completed Oct 19, 2020
@Fydar Fydar moved this to Todo in RPGCore Development Dec 23, 2021
@Fydar Fydar moved this from Todo to Done in RPGCore Development Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 RPGCore.Packages Issue related to the RPGCore.Packages package New feature or request
Projects
Development

No branches or pull requests

1 participant