As part of the work towards turning my game code into a reusable plug-in, I went through and stuck all of the relevant code into a namespace, but now even though I still register them to Superpowers none of the behaviors from the namespaced code appear in editors, even if I move the registration out of the namespace. For example:
class SimplePhraseBehavior extends Sup.Behavior {
...
}
Sup.registerBehavior(SimplePhraseBehavior);
Works just fine but:
namespace TomE {
export class SimplePhraseBehavior extends Sup.Behavior {
...
}
Sup.registerBehavior(SimplePhraseBehavior); //with either this....
}
Sup.registerBehavior(TomE.SimplePhraseBehavior); // OR this
Compiles but causes the behavior to be unavailable/marked "missing" in the editor