Show / Hide Table of Contents

Class TilesetAnalyzer

This class provides the implementation of the analysis of user's marching cubes, reporting any errors or warnings it finds. These reports indicate to the user what is wrong and the user can make necessary steps to remedy them, or ignore them in the case of benign warnings.

The errors and warnings are split into three categories:

Error/Warning NameDescription
Structural errors These errors are unrecoverable, and will likely prevent both the rest of the analysis and the WFC algorithm from running. They include cases such as internal indices being out of range, or two modules having the same ID.

The CarbideFunction importer will not generate assets with these errors - if the asset was edited by hand then a reimport will fix them. If a custom importer generated the asset then the importer should be fixed.

Content errors These errors will prevent modules from being available in the generated map. This means that the work put in to create and maintain them will never be seen by the player. This includes cases such as a module's face not matching any other module faces in the asset, so it will never be picked.
Marching cube warnings These warnings indicate that some voxel maps will not work if they include specific layouts of voxels. They are a normal and commonplace occurance when developing a tileset, and are even seen in production ready tilesets - for example, a city tileset will typically be built from the ground up, and might not include the modules for voxels overhanging one another.
Inheritance
System.Object
TilesetAnalyzer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CarbideFunction.Wildtile.Editor
Syntax
public static class TilesetAnalyzer

Methods

GenerateReport(Tileset, IEnumerable<SearchConfiguration>)

Analyzes the marchingCubes using the searchParameters, returning a report that can be cross-referenced with the passed in marching cubes or the search parameters to describe the problems.

Declaration
public static TilesetAnalyzer.Report GenerateReport(Tileset marchingCubes, IEnumerable<SearchConfiguration> searchParameters)
Parameters
Type Name Description
Tileset marchingCubes
System.Collections.Generic.IEnumerable<SearchConfiguration> searchParameters
Returns
Type Description
TilesetAnalyzer.Report
In This Article
Generated by DocFX Version: 3.2.1 - click to show/hide other versions