-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Currently, there isn't an easy way to print out the values of a resource stat. Given how many times I've written something like $"HP: {hp.CurrentValue}/{hp.MaxValue}", I think a ToString override is warranted. I'd like for it to behave like I've shown earlier, where it's formatted {stat.CurrentValue}/{stat.MaxValue}, but also so we can write $"HP: {hp}" instead.
The benefits of this include:
- Code duplication reduction
- Debug assistance (most debuggers use
ToString()to show the state of the object in their various debug views) - Code simplification
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers