Function Override: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
*[[Function]] | *[[Function]] | ||
*[[Terrain Type Override]] | *[[Terrain Type Override]] | ||
*[[Unit Data Overrides]] | |||
}} | }} | ||
{{editor current situation nav}} | {{editor current situation nav}} |
Revision as of 14:32, 1 February 2024
Function Override is an Item that stores changes made to properties of a Function.
When an attribute, function value or other property of a Function is requested, the Function always checks if a Function Override of that function exists and if it overrides that property. In such cases, the property of the Function Override is returned. This system also allows to reset overridden properties back to the original values of the Function, by simply deleting the property in the Function Override.
A Function Override is created once a change has been made to a Function in the editor. This Function Override will have the same ID as the Function.
Notes
- Similar systems are used for Terrain Types (Terrain Type Overrides) and Unit Datas (Unit Data Overrides).
See also