logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PlayCutscene

    Use case for playing a cutscene using its definition.

    Inheritance
    object
    PlayCutscene
    Implements
    IAsyncUseCase<ICutsceneDefinition>
    IUseCase
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.CutscenePlayer.Application.UseCases
    Assembly: Serenity.CutscenePlayer.Application.dll
    Syntax
    public class PlayCutscene : IAsyncUseCase<ICutsceneDefinition>, IUseCase

    Constructors

    PlayCutscene(ICutscenePlayerService)

    Initializes a new instance of the PlayCutscene class with the specified cutscene player service.

    Declaration
    public PlayCutscene(ICutscenePlayerService service)
    Parameters
    Type Name Description
    ICutscenePlayerService service

    The cutscene player service to be used.

    Methods

    ExecuteAsync(ICutsceneDefinition, CancellationToken)

    Executes the use case to play a cutscene using its definition.

    Declaration
    public Task ExecuteAsync(ICutsceneDefinition definition, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ICutsceneDefinition definition

    The definition of the cutscene to be played.

    CancellationToken cancellationToken

    Optional cancellation token to cancel the operation.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    Implements

    IAsyncUseCase<TInput>
    IUseCase
    In this article
    © 2026 Serenity. All Rights Reserved