Struct InventorySection.InventoryEntry
A single inventory entry: an item id, its held quantity, and an optional custom JSON payload.
Inherited Members
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 |