logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct InventorySection.InventoryEntry

    A single inventory entry: an item id, its held quantity, and an optional custom JSON payload.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.GameSave.Domain.Sections
    Assembly: Serenity.GameSave.Domain.dll
    Syntax
    public readonly struct InventorySection.InventoryEntry

    Constructors

    InventoryEntry(string, int, string)

    Creates a new InventorySection.InventoryEntry.

    Declaration
    public InventoryEntry(string itemId, int quantity, string customJson)
    Parameters
    Type Name Description
    string itemId
    int quantity
    string customJson

    Fields

    CustomJson

    Free-form JSON payload for project-specific per-item data. May be null.

    Declaration
    public readonly string CustomJson
    Field Value
    Type Description
    string

    ItemId

    The item's identifier.

    Declaration
    public readonly string ItemId
    Field Value
    Type Description
    string

    Quantity

    The quantity held.

    Declaration
    public readonly int Quantity
    Field Value
    Type Description
    int
    In this article
    © 2026 Serenity. All Rights Reserved