logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct FeedbackDefinitionData

    Engine-agnostic snapshot of a designer-authored feedback preset, resolved from a FeedbackDefinition asset. Carries an ordered list of IFeedbackEffect the service dispatches to channels. The legacy single-impulse fields (Intensity, Steps) are retained for back-compat: the legacy constructor synthesizes a single VibrationEffect so consumers can always iterate Effects.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Feedback.Application.DTO
    Assembly: Serenity.Feedback.Application.dll
    Syntax
    public readonly struct FeedbackDefinitionData

    Constructors

    FeedbackDefinitionData(string, FeedbackIntensity, IReadOnlyList<FeedbackPatternStep>)

    Legacy constructor: builds a vibration-only definition and synthesizes a single VibrationEffect so Effects is always populated.

    Declaration
    public FeedbackDefinitionData(string id, FeedbackIntensity intensity, IReadOnlyList<FeedbackPatternStep> steps)
    Parameters
    Type Name Description
    string id
    FeedbackIntensity intensity
    IReadOnlyList<FeedbackPatternStep> steps

    FeedbackDefinitionData(string, IReadOnlyList<IFeedbackEffect>)

    Multi-effect constructor.

    Declaration
    public FeedbackDefinitionData(string id, IReadOnlyList<IFeedbackEffect> effects)
    Parameters
    Type Name Description
    string id

    Stable identifier of the source definition.

    IReadOnlyList<IFeedbackEffect> effects

    The ordered effects to actuate.

    Fields

    Effects

    Declaration
    public readonly IReadOnlyList<IFeedbackEffect> Effects
    Field Value
    Type Description
    IReadOnlyList<IFeedbackEffect>

    The ordered effects to actuate across channels.

    Id

    Declaration
    public readonly string Id
    Field Value
    Type Description
    string

    Stable identifier of the source definition.

    Intensity

    Declaration
    public readonly FeedbackIntensity Intensity
    Field Value
    Type Description
    FeedbackIntensity

    Legacy headline impulse (preserved for back-compat).

    Steps

    Declaration
    public readonly IReadOnlyList<FeedbackPatternStep> Steps
    Field Value
    Type Description
    IReadOnlyList<FeedbackPatternStep>

    Legacy optional pattern steps (preserved for back-compat).

    Properties

    HasEffects

    True when the definition carries at least one effect.

    Declaration
    public bool HasEffects { get; }
    Property Value
    Type Description
    bool

    HasPattern

    True when the legacy definition carries a multi-step pattern.

    Declaration
    public bool HasPattern { get; }
    Property Value
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved