|
Drag[en]gine Script Module DragonScript 1.35
|
Debug verify stub element properties against element classes. More...
Public Member Functions | |
| Console | getConsole () |
| Console to use. | |
| Dictionary | getDecalProperties () |
| Dictionary of element properties to verify world decal properties against. | |
| Array | getIgnoreClassNames () |
| Array of class names to ignore. | |
| Array | getIgnoreKeys () |
| Array of property keys to ignore. | |
| String | getLogPrefix () |
| Prefix prepended to logs written. | |
| Dictionary | getWorldProperties () |
| List of ElementClassProperty to verify world properties against. | |
| void | logProblem (String message) |
| Log problem. | |
| DebugVerifyStubProperties | new (Console console) |
| Create debug verifier. | |
| void | setConsole (Console console) |
| Set console to use. | |
| void | setDecalProperties (Dictionary properties) |
| Dictionary of element properties to verify world decal properties against. | |
| void | setLogPrefix (String prefix) |
| Set prefix prepended to logs written. | |
| void | setWorldProperties (Dictionary properties) |
| Set dictionary of element properties to verify world properties against. | |
| bool | verifyDecal (StubWorldDecal stub, Dictionary properties) |
| Verify stub properties against element class properties. | |
| bool | verifyElement (StubElement stub) |
| Verify stub properties against element class properties. | |
| bool | verifyProperties (StubWithProperties stub, Dictionary properties, String logPrefix) |
| Verify stub properties using list of ElementClassProperty. | |
| bool | verifyWorld (StubGameWorld stub) |
| Verify stub properties. | |
Public Attributes | |
| Console | pConsole |
| Dictionary | pDecalProperties |
| Array | pIgnoreClassNames |
| Array | pIgnoreKeys |
| String | pLogPrefix |
| Dictionary | pWorldProperties |
Debug verify stub element properties against element classes.
Prints problems found to Console. Helps finding problems with stub properties not matching element class properties given stub properties use the same name. It is though recommended to use the same name so artists do not have to use two different naming conventions.
This class only verifies StubElement properties against their ElementClass. If you want to check set up the appropriate parameters in the class with instances of ElementClassProperty containing the required information.
| Console Dragengine.Debugging.DebugVerifyStubProperties.getConsole | ( | ) |
Console to use.
Referenced by setConsole().
| Dictionary Dragengine.Debugging.DebugVerifyStubProperties.getDecalProperties | ( | ) |
Dictionary of element properties to verify world decal properties against.
By default this is null which disables checking decal properties. Dictionary contains ElementClassProperty values with ElementClassProperty.getName() as key.
References setWorldProperties().
Referenced by getIgnoreClassNames().
| Array Dragengine.Debugging.DebugVerifyStubProperties.getIgnoreClassNames | ( | ) |
Array of class names to ignore.
References getDecalProperties(), and pDecalProperties.
Referenced by verifyDecal().
| Array Dragengine.Debugging.DebugVerifyStubProperties.getIgnoreKeys | ( | ) |
Array of property keys to ignore.
Referenced by verifyElement().
| String Dragengine.Debugging.DebugVerifyStubProperties.getLogPrefix | ( | ) |
| Dictionary Dragengine.Debugging.DebugVerifyStubProperties.getWorldProperties | ( | ) |
List of ElementClassProperty to verify world properties against.
By default this is null which disables checking world properties. Dictionary contains ElementClassProperty values with ElementClassProperty.getName() as key.
References pLogPrefix, and setLogPrefix().
Referenced by setWorldProperties().
| void Dragengine.Debugging.DebugVerifyStubProperties.logProblem | ( | String | message | ) |
Log problem.
References logProblem(), pConsole, pDecalProperties, pIgnoreClassNames, pIgnoreKeys, pLogPrefix, pWorldProperties, verifyDecal(), verifyElement(), verifyProperties(), and verifyWorld().
Referenced by logProblem().
| DebugVerifyStubProperties Dragengine.Debugging.DebugVerifyStubProperties.new | ( | Console | console | ) |
Create debug verifier.
References new(), pConsole, pIgnoreClassNames, pIgnoreKeys, and pLogPrefix.
Referenced by new().
| void Dragengine.Debugging.DebugVerifyStubProperties.setConsole | ( | Console | console | ) |
| void Dragengine.Debugging.DebugVerifyStubProperties.setDecalProperties | ( | Dictionary | properties | ) |
Dictionary of element properties to verify world decal properties against.
By default this is null which disables checking decal properties. Dictionary contains ElementClassProperty values with ElementClassProperty.getName() as key.
References pWorldProperties.
Referenced by verifyWorld().
| void Dragengine.Debugging.DebugVerifyStubProperties.setLogPrefix | ( | String | prefix | ) |
Set prefix prepended to logs written.
References getLogPrefix(), pConsole, pLogPrefix, and setConsole().
Referenced by getWorldProperties().
| void Dragengine.Debugging.DebugVerifyStubProperties.setWorldProperties | ( | Dictionary | properties | ) |
Set dictionary of element properties to verify world properties against.
By default this is null which disables checking world properties. Dictionary contains ElementClassProperty values with ElementClassProperty.getName() as key.
References getWorldProperties(), and pWorldProperties.
Referenced by getDecalProperties().
| bool Dragengine.Debugging.DebugVerifyStubProperties.verifyDecal | ( | StubWorldDecal | stub, |
| Dictionary | properties ) |
Verify stub properties against element class properties.
References getIgnoreClassNames(), and pIgnoreClassNames.
Referenced by logProblem().
| bool Dragengine.Debugging.DebugVerifyStubProperties.verifyElement | ( | StubElement | stub | ) |
Verify stub properties against element class properties.
References getIgnoreKeys(), pDecalProperties, and pIgnoreKeys.
Referenced by logProblem().
| bool Dragengine.Debugging.DebugVerifyStubProperties.verifyProperties | ( | StubWithProperties | stub, |
| Dictionary | properties, | ||
| String | logPrefix ) |
Verify stub properties using list of ElementClassProperty.
Referenced by logProblem().
| bool Dragengine.Debugging.DebugVerifyStubProperties.verifyWorld | ( | StubGameWorld | stub | ) |
Verify stub properties.
References setDecalProperties().
Referenced by logProblem().
| Console Dragengine.Debugging.DebugVerifyStubProperties.pConsole |
Referenced by getLogPrefix(), logProblem(), new(), and setLogPrefix().
| Dictionary Dragengine.Debugging.DebugVerifyStubProperties.pDecalProperties |
Referenced by getIgnoreClassNames(), logProblem(), and verifyElement().
| Array Dragengine.Debugging.DebugVerifyStubProperties.pIgnoreClassNames |
Referenced by logProblem(), new(), and verifyDecal().
| Array Dragengine.Debugging.DebugVerifyStubProperties.pIgnoreKeys |
Referenced by logProblem(), new(), and verifyElement().
| String Dragengine.Debugging.DebugVerifyStubProperties.pLogPrefix |
Referenced by getWorldProperties(), logProblem(), new(), and setLogPrefix().
| Dictionary Dragengine.Debugging.DebugVerifyStubProperties.pWorldProperties |
Referenced by logProblem(), setDecalProperties(), and setWorldProperties().