Included in this download is a single XS file called kbProtoUnitIsType. It contains a single function that goes by the same name. To this function in your own AIs be sure to add 'include"kbProtoUnitIsType.xs";' at the top of the AI file you want to use it in.
Basically, this function behaves the same as the 'kbUnitIsType()' function supplied to us by ES, except that the first parameter is a ProtoUnit (or base UnitType) not a UnitID. For example, the result of the evaluation:
is 'true' because the Farm unit DOES include the 'Resource' unittype ilk. If the evaluation were:
the result would be 'false' because Dwarves are not classified as MythUnits.
All the data in this file is based upon the default AoMX protox file if you have a mod that adds units, or adds/removes some proto units from certain groups, you will need to update this file to accomidate such changes. Each proto has its own entry in this file, so to add/remove unittype classes, just search find the entry for the respective proto and modify accordingly. Much of this information can be found in comments in the file itself.
Enjoy! I hope you find this function as useful as I do!