Changes between Version 3 and Version 4 of code/doc/CoreIncludes
- Timestamp:
- Feb 26, 2008, 11:13:09 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/CoreIncludes
v3 v4 13 13 14 14 * '''Factory''': 15 * '''!CreateFactory('''''!ClassName''''')''': Creates the entry in the [wiki:Factory] for the given class and adds a [wiki:ClassFactory] to the corresponding [wiki:Identifier]. 15 * '''!CreateFactory('''''!ClassName''''')''': Creates the entry in the [wiki:Factory] for the given class and adds a [wiki:ClassFactory] to the corresponding [wiki:Identifier]. This macro has to be used outside the class-functions as a static call. 16 16 * '''ID('''''!StringOrInt''''')''': Returns the [wiki:Identifier] of the class with the given name or the given network ID if the entry in the [wiki:Factory] exists (see !CreateFactory(!ClassName)). 17 17 18 18 * '''Config-values''': 19 * '''!SetConfigValue('''''varname''''', '''''defvalue''''')''': Defines a [wiki:ConfigValueContainer configurable] variable with a default-value that can be changed in the config-file. 19 * '''!SetConfigValue('''''varname''''', '''''defvalue''''')''': Defines a [wiki:ConfigValueContainer configurable] variable with a default-value that can be changed in the config-file. This macro should only be used in the setConfigValues() function to allow ingame-changes of the values. 20 20 * '''!ResetConfigValue('''''varname''''')''': Sets the given config-value back to the default-value (see !SetConfigValue(varname, defvalue)).