Valkrionn
The Hamster King
Alright, potentially difficult problem here. But an interesting one. 
Basically, I need to map out how production choices are made available, but I hit a wall after CvDLLWidgetData::doTrain().
What I am attempting to do, is allow for the addition of UUs on a city-by-city basis (making use of a new CityClass object which I've already implemented); To do this, I added a CityUnit array. I am attempting to do this in such a way that it would allow for multiple units (or buildings, but focusing on one at a time here) of the same unitclass to be constructed; I have no plans for this, but the flexibility it would allow would be nice (particularly with Barbarians, as we plan for each barb city to possess a cityclass representative of a race in the mod; Dwarves, Elves, Humans, Orcs, etc).
Has anyone ever mapped these functions out? Any ideas on how to proceed? I've been able to get the units to show up in the production popup, but they are not produced and cause a crash.

Basically, I need to map out how production choices are made available, but I hit a wall after CvDLLWidgetData::doTrain().
What I am attempting to do, is allow for the addition of UUs on a city-by-city basis (making use of a new CityClass object which I've already implemented); To do this, I added a CityUnit array. I am attempting to do this in such a way that it would allow for multiple units (or buildings, but focusing on one at a time here) of the same unitclass to be constructed; I have no plans for this, but the flexibility it would allow would be nice (particularly with Barbarians, as we plan for each barb city to possess a cityclass representative of a race in the mod; Dwarves, Elves, Humans, Orcs, etc).
Has anyone ever mapped these functions out? Any ideas on how to proceed? I've been able to get the units to show up in the production popup, but they are not produced and cause a crash.