logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IComboService

    Service interface for managing the combo system. Combo increases on consecutive kills, breaks on player damage or timeout. Applies a score multiplier but does NOT affect the countdown timer.

    Namespace: Serenity.Combo.Application.Interfaces.Services
    Assembly: Serenity.Combo.Application.dll
    Syntax
    public interface IComboService : IService, IFoundationSettings

    Properties

    CurrentCombo

    Gets the current combo count.

    Declaration
    int CurrentCombo { get; }
    Property Value
    Type Description
    int

    IsActive

    True if a combo is currently active.

    Declaration
    bool IsActive { get; }
    Property Value
    Type Description
    bool

    Methods

    AddCombo()

    Incrementing the combo counter.

    Declaration
    void AddCombo()

    BreakCombo()

    Breaks the current combo (e.g., on player damage).

    Declaration
    void BreakCombo()

    GetSnapshot<T>()

    Returns an immutable snapshot of the current combo state.

    Declaration
    T GetSnapshot<T>() where T : ComboSnapshot
    Returns
    Type Description
    T

    Returns the combo snapshot

    Type Parameters
    Name Description
    T

    The ComboSnapshot to parse

    GetState<T>()

    Returns the combo state

    Declaration
    T GetState<T>() where T : ComboState
    Returns
    Type Description
    T

    Returns the combo state

    Type Parameters
    Name Description
    T

    The ComboState to parse

    InitializeService(ILogService)

    Intializes the service.

    Declaration
    void InitializeService(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService
    In this article
    © 2026 Serenity. All Rights Reserved