Class Solution
The Solution class represents a maze solution
Implements
Inherited Members
Namespace: Maze.Api
Assembly: Maze.Api.dll
Syntax
public class Solution : IDisposable
Constructors
Solution(uint)
Creates a new solution that wraps a Maze.Wasm.Interop solution pointer, or will throw an exception if the operation fails
Declaration
public Solution(uint solutionWasmPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | solutionWasmPtr | Maze.Wasm.Interop solution pointer |
Properties
Interop
The current Maze.Wasm.Interop associated with the object
Declaration
public MazeWasmInterop Interop { get; }
Property Value
| Type | Description |
|---|---|
| MazeWasmInterop | Maze.Wasm.Interop instance |
UseStaticInterop
Controls whether the object uses a statically defined Maze.Wasm.Interop instance (default = true). If
false, then the maze determines the current instance on a per-API call basis.
Declaration
public static bool UseStaticInterop { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
Methods
Dispose()
Handles object disposal, releasing managed and unmanaged Maze.Wasm.Interop resources and marking the object as having been finalized
Declaration
public void Dispose()
Dispose(bool)
Handles object disposal
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Flag indicating whether the object should be fully disposed (ie. including managed as well as unmanaged resources) |
~Solution()
Handles object finalization (deletion)
Declaration
protected ~Solution()
GetPathPoints()
Returns the list of points associated with the solution's path, or will throw an exception if the operation fails
Declaration
public List<Maze.Point> GetPathPoints()
Returns
| Type | Description |
|---|---|
| List<Maze.Point> | List of points |