Class ProductTable
- Namespace
- LlamaLogic.Architecture
- Assembly
- LlamaLogic.Architecture.dll
Represents a table of catalog product keys and the ids by which the rest of a section refers to them
public sealed class ProductTable
- Inheritance
-
ProductTable
- Inherited Members
Remarks
The layout follows the game's reader and writer. When the game adds a key, it gives a new key the lowest id from 1 up that is not in use, and adds the added amount to the ReferenceCount of a key that is already present. Id 0 stands for DefaultKey: the table returns 0 for that key and never adds it.
Layout: DefaultKey (instance, type, group), a uint count, then the Entries.
Properties
DefaultKey
Gets/sets the key that id 0 stands for
public ResourceKey DefaultKey { get; set; }
Property Value
Remarks
It is the null key in every lot examined.
Entries
Gets the entries, in the order the game wrote them
public Collection<ProductTableEntry> Entries { get; }