logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IGameplayEntityService

    Service interface for the GameplayEntity system.

    Namespace: Serenity.GameplayEntity.Application.Interfaces
    Assembly: Serenity.GameplayEntity.Application.dll
    Syntax
    public interface IGameplayEntityService : IService, IFoundationSettings
    Remarks

    This service is intentionally minimal. GameplayEntity provides identity and semantic typing only—it does not manage entity lifecycle, state, or behavior. Other systems consume GameEntityRef values directly.

    Methods

    CreateRef(GameEntityKind)

    Creates a new entity reference with the specified kind.

    Declaration
    GameEntityRef CreateRef(GameEntityKind kind)
    Parameters
    Type Name Description
    GameEntityKind kind

    The semantic kind of the entity.

    Returns
    Type Description
    GameEntityRef

    A new GameEntityRef with a unique identity.

    CreateRef(GameEntityId, GameEntityKind)

    Creates a new entity reference with the specified identity and kind.

    Declaration
    GameEntityRef CreateRef(GameEntityId id, GameEntityKind kind)
    Parameters
    Type Name Description
    GameEntityId id

    The explicit entity identity.

    GameEntityKind kind

    The semantic kind of the entity.

    Returns
    Type Description
    GameEntityRef

    A new GameEntityRef with the given identity and kind.

    In this article
    © 2026 Serenity. All Rights Reserved