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.
0 Comments
Leave a Reply. |