I'm pretty sure this is currently impossible, after looking around for it for a while, but I'd like to be able to get a List<ThingComp> of all the comps on a given ThingWithComps that derive from one of my base classes/interfaces. Specifically, I want to get List<CompSignal> or List<ICompSignal>and have it contain all the direction-specific subclasses too. My goal is to make it so that CompSignal connects on any sides that aren't already connected by direction-specific subclasses, without having to actually specifically check every possible variation in the code (That's 7 so far, N/S/E/W, NS, EW, and N+Source, but I expect that list to grow over time).
Is there a way to get all Comps of a given supertype (or just all, I'll filter it myself...) from a ThingWithComps?
Is there a way to get all Comps of a given supertype (or just all, I'll filter it myself...) from a ThingWithComps?