New NPC Classes

So, I’m working on a couple of mods that will need more than the default NPC classes, but I haven’t any idea on how to implement these, or if it’s even possible, without modifying the hardcode. If anyone could help, it’d be extremely appreciated.

Unfortunately NPC classes are currently hardcoded.
Many sections of NPC code are rather ancient, classes are one of those sections.

Most of the code regarding them is quite simple and can be done with copy+paste, but not with jsons.

Another thing that I’ve also wished for, JSONizing them would be useful, primarily to modders.