Problem
namespace Griff.Scenes;
public sealed class ProblemOne 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.
Properties
Section titled “Properties”ComponentType
Section titled “ComponentType”public string? ComponentType { get; init; }The type name of the component it was found on, or null.
EntityName
Section titled “EntityName”public string? EntityName { get; init; }The name of the entity it was found on, or null.
Message
Section titled “Message”public string Message { get; init; }What’s wrong, in words a game’s author reads (it names the component and entity too).
Methods
Section titled “Methods”Concerns
Section titled “Concerns”public bool Concerns(Component component)True when it was found on component: the entity’s name and the component’s type name match.
Deconstruct
Section titled “Deconstruct”public void Deconstruct(out string Message, out string? EntityName, out string? ComponentType)Equals
Section titled “Equals”public override bool Equals(object? obj)Equals
Section titled “Equals”public bool Equals(Problem? other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()ToString
Section titled “ToString”public override string ToString()