greenstack / GameStats

A simple, lightweight library containing generic classes for your game-related statistics (like HP, money, etc.)
MIT License
0 stars 1 forks source link

Add comparison operators for stats #6

Open greenstack opened 2 months ago

greenstack commented 2 months ago

Allowing stats to be directly comparable to a value of its internal type would be a huge QoL improvement. These should work on current values.

tcr235 commented 1 month ago

Do you need "==" and "!=" in the IStat's operators or just ">, <, >=, <=" its enough?

greenstack commented 1 week ago

I think having == and != would be helpful in the long run.