Help with Generics
Here is my current code:
StatAttackRange/StatAttackDamage inherit from CharacterStat
I feel like it's inelegant, and I believe the solution is to use generics. But when I try to make a generic function (see below) I'm doing something wrong and I'm not sure what.
https://i.imgur.com/tTW44Y9.png
StatAttackRange/StatAttackDamage inherit from CharacterStat
I feel like it's inelegant, and I believe the solution is to use generics. But when I try to make a generic function (see below) I'm doing something wrong and I'm not sure what.
https://i.imgur.com/tTW44Y9.png
Imgur

