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

Create general API for managing persistent game options #48

Closed
james7132 opened this issue Nov 21, 2016 · 1 comment
Closed

Create general API for managing persistent game options #48

james7132 opened this issue Nov 21, 2016 · 1 comment

Comments

@james7132
Copy link
Member

This is mainly necessary for having a configurable game. The system needs to meet the following requirements.

  • Persistent: these options should be readable
  • Reflective: there should be ways to inspect all of the options. This will be particularly useful with auto-generating UI for menus.
  • Type-safe

Proposed implementation:

Options will be stored and managed by a OptionsSystem, Supporting a way to access a iterable, categorized list of Option objects.

[Category("Match")]
public class MatchOptions : OptionsBase {
  [Option("Show Damage")]
  public bool ShowDamage { get; set; }
}
@james7132
Copy link
Member Author

Complete with the merging of #71.

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

No branches or pull requests

3 participants