logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IRailPathProvider

    Optional capability implemented by a concrete IGameRailService that can resolve the full RailPath (node positions) for a registered rail.

    Namespace: Serenity.GameRail.Application.Interfaces
    Assembly: Serenity.GameRail.Application.dll
    Syntax
    public interface IRailPathProvider
    Remarks

    GetSnapshot(RailId) only reports node count, not positions, so a pose-sampling consumer needs this additional port. A rail service that does not implement it makes a pose-sampling consumer degrade with a warning instead of silently doing nothing.

    Methods

    GetPath(RailId)

    Returns the registered RailPath for the given id, or null if unknown.

    Declaration
    RailPath GetPath(RailId id)
    Parameters
    Type Name Description
    RailId id

    The rail identity.

    Returns
    Type Description
    RailPath
    In this article
    © 2026 Serenity. All Rights Reserved