CoolMon 2 : SDKCMLx

CMLx Plugin

The cmlX plugin will enable you to do some altering already at the CML level. This plugin type will enable you to handle a certain CML tag in the configuration file. When CM2 hits this tag it automatically is passed on to your plugin. With this plugin type you can actually return CML to extend the configuration. Creating these plugin will require mucho work since the parameters send to this plugin type is CML, this in turns means that you must incorporate an XML parser if you want to make something really high powered.

These plugins are not supported in Outlaw Ed.

This plugin types only has to functions, beside the basic ones.

Function TagName(OUT Tag: PChar)...
Tag is the tag you want to extend to the CML, when the engine finds this tag it will pass the entire node on to your plugin.

Function Perform(Attribute: PChar; Parameters: PChar; OUT ResultString: WideString; OUT ResultType: Byte)...
When the tag is found and CM2 needs your plugin to work with the tag. Attribute is the attributes your Tag has, Parameters these are the parameters in the parameter tag (standard "=|=|=" string list), ResultString this is where you provide the output back to CM2, if any.
ResultType determines what you are returning and how CoolMon 2 will handle it