frontend
    Preparing search index...

    Interface ReplayBuilderConfig<TResponse, TAction, TCtx>

    Configuration for building replay animation states from CPU actions.

    interface ReplayBuilderConfig<TResponse, TAction, TCtx> {
        actions: TAction[];
        applyAction: (ctx: TCtx, action: TAction) => void;
        buildState: (
            finalState: TResponse,
            ctx: TCtx,
            action: TAction,
            processedActions: TAction[],
            isLast: boolean,
        ) => TResponse;
        finalState: TResponse;
        initContext: (finalState: TResponse) => TCtx;
        reverseAction: (ctx: TCtx, action: TAction) => void;
    }

    Type Parameters

    • TResponse
    • TAction
    • TCtx
    Index

    Properties

    actions: TAction[]
    applyAction: (ctx: TCtx, action: TAction) => void
    buildState: (
        finalState: TResponse,
        ctx: TCtx,
        action: TAction,
        processedActions: TAction[],
        isLast: boolean,
    ) => TResponse
    finalState: TResponse
    initContext: (finalState: TResponse) => TCtx
    reverseAction: (ctx: TCtx, action: TAction) => void