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 3 weeks ago

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