logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AddScoreSignal

    Dispatched to add a delta to a Score metric through AddScoreAction, so a designer can wire "score for this" from a no-code signal trigger instead of a call to IScoreService.

    Inheritance
    object
    AddScoreSignal
    Namespace: Serenity.Score.Application.Events
    Assembly: Serenity.Score.Application.dll
    Syntax
    public class AddScoreSignal : EventDispatcherSignal

    Constructors

    AddScoreSignal()

    Initializes a new instance of the AddScoreSignal class.

    Declaration
    public AddScoreSignal()

    AddScoreSignal(string, float)

    Initializes a new instance of the AddScoreSignal class.

    Declaration
    public AddScoreSignal(string key, float delta)
    Parameters
    Type Name Description
    string key

    The key of the metric to add to.

    float delta

    The amount to add to the metric.

    Fields

    Delta

    Declaration
    public readonly float Delta
    Field Value
    Type Description
    float

    The amount to add to the metric.

    Key

    Declaration
    public readonly string Key
    Field Value
    Type Description
    string

    The key of the metric to add to. Must already be registered.

    Methods

    ToString()

    Returns a string representation of the event.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved