logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeUiOptionMerge

    The options a view ends up with after a recipe met the options it already owned, where each recipe option landed — the index its submit signals must be written to — and the recipe options it refused.

    Inheritance
    object
    RecipeUiOptionMerge
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Importers
    Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
    Syntax
    public sealed class RecipeUiOptionMerge

    Constructors

    RecipeUiOptionMerge(UiOption[], IReadOnlyList<int>, RecipeIdentityRefusals)

    Creates the merge result.

    Declaration
    public RecipeUiOptionMerge(UiOption[] options, IReadOnlyList<int> optionIndexByRecipeIndex, RecipeIdentityRefusals refusals)
    Parameters
    Type Name Description
    UiOption[] options
    IReadOnlyList<int> optionIndexByRecipeIndex
    RecipeIdentityRefusals refusals

    Properties

    OptionIndexByRecipeIndex

    Declaration
    public IReadOnlyList<int> OptionIndexByRecipeIndex { get; }
    Property Value
    Type Description
    IReadOnlyList<int>

    For each recipe option, the index of the option it became in Options; -1 for a null or refused recipe entry.

    Options

    Declaration
    public UiOption[] Options { get; }
    Property Value
    Type Description
    UiOption[]

    The view's options after the merge, in order.

    Refusals

    Declaration
    public RecipeIdentityRefusals Refusals { get; }
    Property Value
    Type Description
    RecipeIdentityRefusals

    Each recipe option left out rather than written: for claiming a Guid another option of the view already owns, or for naming by its Id an option of another identity; empty when none was.

    In this article
    © 2026 Serenity. All Rights Reserved