
You also need to know what information to give it to return this data. So, you know what a function returns, but that's not all you need to know. These functions are the most important ones really, as you can't do much without them. The functions that do "do" things return a "VOID" - meaning that they are setting rather than getting data. String - a string ("The cat sat on the mat").Float - a floating point number (1.3423 for example).Int - an integer value (can be negative) (256 for example).It would not set the player able to change religion, instead it would return a BOOL, a true or false value depending on whether the player can or can't. If you look on the left hand side of the function, it will show you what this function returns. Most of the functions don't "do" anything in the game, instead they get a value from your pointer which you can use in an equation. Now, there are lots of different functions. The functions are the main bit of the API, the stuff you want to know. If you try to take a function from a class, and use it on a different class it won't work. Each class has its own set of functions which must be done to that class and that class only. Instead I recommend using gc.getInfoTypeForString("") as shown above, as this is much more patch-compatible.įinally we have the functions. The int values shown are the default values, and while you could use them, and your code would most likely work, I would recommend against it, as if the order of the xml is changed in a future patch, your code will break. These are the different types which can be extracted from the xml files. These classes are used for getting specific information directly from the xml files on an object. You will notice that there are several classes with a little "+" symbol by them.

The classes are listed in the top-left hand frame. For example, CyUnit lists all the functions that will work on a unit entity (a unit in the game). These list all the functions that can be done to a specific entity, or pointer.
