Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Debugging.DebugVerifyStubProperties Class Reference

Debug verify stub element properties against element classes. More...

Inheritance diagram for Dragengine.Debugging.DebugVerifyStubProperties:

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

Detailed Description

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.

Member Function Documentation

◆ getConsole()

Console Dragengine.Debugging.DebugVerifyStubProperties.getConsole ( )

Console to use.

Referenced by setConsole().

◆ getDecalProperties()

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().

◆ getIgnoreClassNames()

Array Dragengine.Debugging.DebugVerifyStubProperties.getIgnoreClassNames ( )

Array of class names to ignore.

References getDecalProperties(), and pDecalProperties.

Referenced by verifyDecal().

◆ getIgnoreKeys()

Array Dragengine.Debugging.DebugVerifyStubProperties.getIgnoreKeys ( )

Array of property keys to ignore.

Referenced by verifyElement().

◆ getLogPrefix()

String Dragengine.Debugging.DebugVerifyStubProperties.getLogPrefix ( )

Prefix prepended to logs written.

References pConsole.

Referenced by setLogPrefix().

◆ getWorldProperties()

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().

◆ logProblem()

void Dragengine.Debugging.DebugVerifyStubProperties.logProblem ( String message)

◆ new()

DebugVerifyStubProperties Dragengine.Debugging.DebugVerifyStubProperties.new ( Console console)

Create debug verifier.

References new(), pConsole, pIgnoreClassNames, pIgnoreKeys, and pLogPrefix.

Referenced by new().

◆ setConsole()

void Dragengine.Debugging.DebugVerifyStubProperties.setConsole ( Console console)

Set console to use.

References getConsole().

Referenced by setLogPrefix().

◆ setDecalProperties()

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().

◆ setLogPrefix()

void Dragengine.Debugging.DebugVerifyStubProperties.setLogPrefix ( String prefix)

Set prefix prepended to logs written.

References getLogPrefix(), pConsole, pLogPrefix, and setConsole().

Referenced by getWorldProperties().

◆ setWorldProperties()

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().

◆ verifyDecal()

bool Dragengine.Debugging.DebugVerifyStubProperties.verifyDecal ( StubWorldDecal stub,
Dictionary properties )

Verify stub properties against element class properties.

Returns
true if no problems are found or false if problems are found.

References getIgnoreClassNames(), and pIgnoreClassNames.

Referenced by logProblem().

◆ verifyElement()

bool Dragengine.Debugging.DebugVerifyStubProperties.verifyElement ( StubElement stub)

Verify stub properties against element class properties.

Returns
true if no problems are found or false if problems are found.

References getIgnoreKeys(), pDecalProperties, and pIgnoreKeys.

Referenced by logProblem().

◆ verifyProperties()

bool Dragengine.Debugging.DebugVerifyStubProperties.verifyProperties ( StubWithProperties stub,
Dictionary properties,
String logPrefix )

Verify stub properties using list of ElementClassProperty.

Returns
true if no problems are found or false if problems are found.

Referenced by logProblem().

◆ verifyWorld()

bool Dragengine.Debugging.DebugVerifyStubProperties.verifyWorld ( StubGameWorld stub)

Verify stub properties.

Returns
true if no problems are found or false if problems are found.

References setDecalProperties().

Referenced by logProblem().

Member Data Documentation

◆ pConsole

Console Dragengine.Debugging.DebugVerifyStubProperties.pConsole

◆ pDecalProperties

Dictionary Dragengine.Debugging.DebugVerifyStubProperties.pDecalProperties

◆ pIgnoreClassNames

Array Dragengine.Debugging.DebugVerifyStubProperties.pIgnoreClassNames

Referenced by logProblem(), new(), and verifyDecal().

◆ pIgnoreKeys

Array Dragengine.Debugging.DebugVerifyStubProperties.pIgnoreKeys

Referenced by logProblem(), new(), and verifyElement().

◆ pLogPrefix

String Dragengine.Debugging.DebugVerifyStubProperties.pLogPrefix

◆ pWorldProperties

Dictionary Dragengine.Debugging.DebugVerifyStubProperties.pWorldProperties

The documentation for this class was generated from the following file: