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

Add parent property to Tag class #26

Open
audse opened this issue Jan 23, 2024 · 1 comment
Open

Add parent property to Tag class #26

audse opened this issue Jan 23, 2024 · 1 comment
Labels

Comments

@audse
Copy link
Contributor

audse commented Jan 23, 2024

This will allow tags to be hierarchical.

Tag.identifier should include the parent in the identifier, ex. (pseudo-code):

Tag tag_1("parent_name");
Tag tag_2("child_name");
tag_2.parent = tag_1;
assert(tag_2.get_identifier() == "parent_name/child_name")
@audse audse added the feature label Jan 23, 2024
@ODtian
Copy link

ODtian commented Mar 13, 2024

I this it should be something like ancestors array, therefore you can check whether it has a category of tag. Like you can query if it has any kind of buff, but you do not care the certain buff name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants