logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Character.InterfaceAdapters.ViewModels

    Classes

    CharacterViewModel

    Runtime state for a single character instance. Extends the Domain CharacterState entity to centralize HP tracking and lifecycle logic, while implementing IViewModel for the presentation layer. Pure C# — no Unity dependencies. Identity is provided by CharacterId from Serenity.Character. Created by the Presenter from a Domain.Configuration.objectConfig at spawn time.

    In this article
    © 2026 Serenity. All Rights Reserved