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

Implement Roles #104

Open
timjen3 opened this issue Nov 9, 2022 · 0 comments
Open

Implement Roles #104

timjen3 opened this issue Nov 9, 2022 · 0 comments

Comments

@timjen3
Copy link
Owner

timjen3 commented Nov 9, 2022

This can't be done until after #103 is complete

Some details about Roles:

  • Roles will serve as templates for building entities.
  • Contain a list of attributes with metadata related to each one. Such as valid ranges of values
  • Would be cool to be able to "sub-class" Roles. Subclass would get all attributes from parent with the ability to override some. Would be useful for relationships like Lifeform => Human => Fighter.
  • A factory can build an entity from a role definitions.
  • Add a parser to build an entity according to a command.

Entities should be supplemented with data from roles like:

  • derived attributes; these don't contain values but formulas for calculating values. the derived attributes live on the role but are available to the entity
  • categories should live on the role, not on the entity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant