Struct CharacterItemIdAssignment
- Namespace
- FishMMO.Database.Npgsql.Services.Interfaces
- Assembly
- FishMMO-DB.dll
One row a snapshot assigned an identity to, so the caller can write it back onto the runtime item.
public readonly struct CharacterItemIdAssignment
- Inherited Members
Remarks
Matched on Container and Slot rather than on the id, because the id is precisely the thing the caller did not know when it built the row.
Constructors
CharacterItemIdAssignment(ItemContainerType, int, long, int)
public CharacterItemIdAssignment(ItemContainerType container, int slot, long id, int templateID)
Parameters
containerItemContainerTypeslotintidlongtemplateIDint
Fields
Container
The container the row was written to.
public readonly ItemContainerType Container
Field Value
ID
The identity the database assigned.
public readonly long ID
Field Value
Slot
The slot the row was written to.
public readonly int Slot
Field Value
TemplateID
The template of the row that was written, so the caller can refuse to hand the identity to a different item that has since moved into the same slot.
public readonly int TemplateID