Skip to content

Problem

namespace Griff.Scenes;
public sealed class Problem

One mistake in a game’s data (a prefab that isn’t there, a name that finds nothing, a row that doesn’t read), said once: what it is, and the entity and component it was found on when there is one, so the Inspector can flag the component and an agent can find it.

public string? ComponentType { get; init; }

The type name of the component it was found on, or null.

public string? EntityName { get; init; }

The name of the entity it was found on, or null.

public string Message { get; init; }

What’s wrong, in words a game’s author reads (it names the component and entity too).

public bool Concerns(Component component)

True when it was found on component: the entity’s name and the component’s type name match.

public void Deconstruct(out string Message, out string? EntityName, out string? ComponentType)
public override bool Equals(object? obj)
public bool Equals(Problem? other)
public override int GetHashCode()
public override string ToString()