Class MinimalLoopOptionsValidator
Validates a MinimalLoopOptions instance before it is turned into a recipe: every id must
be non-empty, the ids the author controls must not collide with each other or with ids already used in
the project, and the output root must be a project path under Assets/.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.SetupAssistant
Assembly: Serenity.UnitySetupAssistant.Infrastructure.Editor.dll
Syntax
public static class MinimalLoopOptionsValidator
Methods
Validate(MinimalLoopOptions, IReadOnlyList<string>)
Validates options against basic shape rules and id collisions.
Declaration
public static List<string> Validate(MinimalLoopOptions options, IReadOnlyList<string> existingIds)
Parameters
| Type | Name | Description |
|---|---|---|
| MinimalLoopOptions | options | The options to validate. |
| IReadOnlyList<string> | existingIds | Ids already used by foundation assets in the project (any type), used to catch collisions with pre-existing content. Pass an empty collection when there is nothing to compare against yet. |
Returns
| Type | Description |
|---|---|
| List<string> | One error string per problem found; empty when |