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 Stat types #18

Open
greenstack opened this issue May 11, 2021 · 2 comments
Open

Add Stat types #18

greenstack opened this issue May 11, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@greenstack
Copy link
Owner

Stats are common in turn-based games. Adding basic stats would be very useful.

Stats should be architected to support various numeric types and should eventually support some kind of pipeline pattern. It doesn't need to be exactly like this, but I'm willing to bet there's a lot to learn here. But that's out of the scope for this issue. For now, I just want there to be some kind of serializable container for these stat types.

@greenstack
Copy link
Owner Author

A feature allowing for generic math in C# is in the works. This has been the major roadblock on this issue, so my proposition is to put this on hold until .NET 6 is released and/or Unity has support for this feature (which who knows how long that will be). The Unity roadmap and this Visual Studio Magazine article may prove helpful.

@greenstack
Copy link
Owner Author

When we get INumeric support, I think having stats implement that interface may prove useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant