WittleWolfie / WW-Blueprint-Core

A library to simplify modifying Pathfinder: Wrath of the Righteous.
MIT License
15 stars 5 forks source link

Investigate simplifying Blueprint<T, TRef> declaration and handling inheritance #46

Closed WittleWolfie closed 2 years ago

WittleWolfie commented 2 years ago

e.g. How do I get from Blueprint<BlueprintFeature, BlueprintFeatureReference> to Blueprint<BlueprintUnitFact, BlueprintUnitFactReference>?

Also, maybe I can do a single type declaration by creating Blueprint<T> : Blueprint<T, BlueprintReference<T>>??

WittleWolfie commented 2 years ago

This cannot be done. The problem is the need to declare new() on the reference for CreateTyped<TRef> to work.

WittleWolfie commented 2 years ago

Actually got a fix in 2.0.3!

WittleWolfie commented 2 years ago

Fixed w/ 2.0.3 release. Behold Blueprint<TRef>!