What i want is to add a new field to PromotionInfo, and also make it so that the value of this field is loaded from the XML.
I've been poking around the SDK code some...still poking at it, and while i'm posting this i just found the read() functions in CvInfos....
So i'm guessing i just have to update these read and write functions to also read/write the new field, and add a value for the new field to the xml.
Moving on to my next question then.
Any ideas on how to make the unit art depend on the type of promotions a unit has?
I looked through the code, and it appears that the art info is associated with an entire unit class, and not with individual units.
To get the art info of a specific unit, it looks like it first gets the unit class/unit id, and then use that to get the art info....so i dont think there is any simple way to do this...but suggestions welcome.
I've been poking around the SDK code some...still poking at it, and while i'm posting this i just found the read() functions in CvInfos....
So i'm guessing i just have to update these read and write functions to also read/write the new field, and add a value for the new field to the xml.
Moving on to my next question then.
Any ideas on how to make the unit art depend on the type of promotions a unit has?
I looked through the code, and it appears that the art info is associated with an entire unit class, and not with individual units.
To get the art info of a specific unit, it looks like it first gets the unit class/unit id, and then use that to get the art info....so i dont think there is any simple way to do this...but suggestions welcome.
Comment