Re: Developing Bugs
Are you talking about converting the Card class or the CardView class (or both)?elcnesh wrote:I'm working on refactoring block declarations, but in order to do everything correctly, I need the field Card::mustBlock to become a multiset (it needs to count the nr of requirements on each creature to block). However, it uses the new property tracking system which I don't quite fully understand yet. Is there a simple way to convert this?
Basically, there needs to be a enum value in TrackableProperty for the property you want to add, and a corresponding TrackableType derived class defining the property type. You can re-use one of the existing classes that derive from TrackableType if possible. If there isn't one for the type you need, you just need to create a new class, likely by copying one of the ones with TODOs in it and just tweaking the name and the generic type.