Drag[en]gine Script Module DragonScript
1.23
|
Debug verify stub element properties against element classes. More...
Public Member Functions | |
Console | getConsole () |
Console to use. More... | |
Dictionary | getDecalProperties () |
Dictionary of element properties to verify world decal properties against. More... | |
Array | getIgnoreClassNames () |
Array of class names to ignore. More... | |
Array | getIgnoreKeys () |
Array of property keys to ignore. More... | |
String | getLogPrefix () |
Prefix prepended to logs written. More... | |
Dictionary | getWorldProperties () |
List of ElementClassProperty to verify world properties against. More... | |
void | logProblem (String message) |
Log problem. More... | |
DebugVerifyStubProperties | new (Console console) |
Create debug verifier. More... | |
void | setConsole (Console console) |
Set console to use. More... | |
void | setDecalProperties (Dictionary properties) |
Dictionary of element properties to verify world decal properties against. More... | |
void | setLogPrefix (String prefix) |
Set prefix prepended to logs written. More... | |
void | setWorldProperties (Dictionary properties) |
Set dictionary of element properties to verify world properties against. More... | |
bool | verifyDecal (StubWorldDecal stub, Dictionary properties) |
Verify stub properties against element class properties. More... | |
bool | verifyElement (StubElement stub) |
Verify stub properties against element class properties. More... | |
bool | verifyProperties (StubWithProperties stub, Dictionary properties, String logPrefix) |
Verify stub properties using list of ElementClassProperty. More... | |
bool | verifyWorld (StubGameWorld stub) |
Verify stub properties. More... | |
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.
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.
Array Dragengine.Debugging.DebugVerifyStubProperties.getIgnoreClassNames | ( | ) |
Array of class names to ignore.
Array Dragengine.Debugging.DebugVerifyStubProperties.getIgnoreKeys | ( | ) |
Array of property keys to ignore.
String Dragengine.Debugging.DebugVerifyStubProperties.getLogPrefix | ( | ) |
Prefix prepended to logs written.
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.
void Dragengine.Debugging.DebugVerifyStubProperties.logProblem | ( | String | message | ) |
Log problem.
DebugVerifyStubProperties Dragengine.Debugging.DebugVerifyStubProperties.new | ( | Console | console | ) |
Create debug verifier.
void Dragengine.Debugging.DebugVerifyStubProperties.setConsole | ( | Console | console | ) |
Set console to use.
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.
void Dragengine.Debugging.DebugVerifyStubProperties.setLogPrefix | ( | String | prefix | ) |
Set prefix prepended to logs written.
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.
bool Dragengine.Debugging.DebugVerifyStubProperties.verifyDecal | ( | StubWorldDecal | stub, |
Dictionary | properties | ||
) |
Verify stub properties against element class properties.
bool Dragengine.Debugging.DebugVerifyStubProperties.verifyElement | ( | StubElement | stub | ) |
Verify stub properties against element class properties.
bool Dragengine.Debugging.DebugVerifyStubProperties.verifyProperties | ( | StubWithProperties | stub, |
Dictionary | properties, | ||
String | logPrefix | ||
) |
Verify stub properties using list of ElementClassProperty.
bool Dragengine.Debugging.DebugVerifyStubProperties.verifyWorld | ( | StubGameWorld | stub | ) |
Verify stub properties.
Console Dragengine.Debugging.DebugVerifyStubProperties.pConsole |
Dictionary Dragengine.Debugging.DebugVerifyStubProperties.pDecalProperties |
Array Dragengine.Debugging.DebugVerifyStubProperties.pIgnoreClassNames |
Array Dragengine.Debugging.DebugVerifyStubProperties.pIgnoreKeys |
String Dragengine.Debugging.DebugVerifyStubProperties.pLogPrefix |
Dictionary Dragengine.Debugging.DebugVerifyStubProperties.pWorldProperties |