Class CharacterItemEntity
One item owned by a character, in whichever container currently holds it.
public class CharacterItemEntity : IVersionedEntity
- Inheritance
-
CharacterItemEntity
- Implements
- Inherited Members
Remarks
Replaces CharacterInventoryEntity, CharacterEquipmentEntity and
CharacterBankEntity. See CharacterItemData for why the three were
merged: three tables meant three identity sequences, so a row id could not identify an item.
Properties
Amount
Quantity of the item in this slot.
public uint Amount { get; set; }
Property Value
Character
public CharacterEntity Character { get; set; }
Property Value
CharacterID
Foreign key to the owning character.
public long CharacterID { get; set; }
Property Value
Container
Which of the character's containers holds this item.
public ItemContainerType Container { get; set; }
Property Value
Deleted
public bool Deleted { get; set; }
Property Value
ID
Primary key, and the item's durable identity.
public long ID { get; set; }
Property Value
Remarks
Database-generated on first insert and returned to the caller, which writes it back onto the runtime item. It survives slot moves and container moves, because Container and Slot are ordinary columns rather than part of the key.
Seed
Randomization seed for item properties.
public int Seed { get; set; }
Property Value
Slot
Slot index within Container.
public int Slot { get; set; }
Property Value
TemplateID
Template identifier for this item.
public int TemplateID { get; set; }
Property Value
TimeCreated
public DateTime TimeCreated { get; set; }
Property Value
TimeDeleted
public DateTime? TimeDeleted { get; set; }
Property Value
Version
Application-level concurrency token. Incremented on every write to detect stale updates.
public long Version { get; set; }