S9SourceNine Labs / CMAPI Docs 1.1
CMAPI / API reference

InventoryLayoutSnapshot

Read-only virtual and native capacity information.

View source ↗
CMAPI 1.1.4Standalone runtimeWindows x64Tested with Planet Crafter 2.008
Namespace CMAPIClassAssembly CMAPI.API.dll
public sealed class InventoryLayoutSnapshot

Read-only virtual and native capacity information.

Members

Context

property
public InventoryContext Context

Gets the native inventory context.

OccupiedVirtualSlots

property
public int OccupiedVirtualSlots

Gets the number of slots occupied after provider grouping.

FreeVirtualSlots

property
public int FreeVirtualSlots

Gets the number of unused native slot positions.

IsLogicallyFull

property
public bool IsLogicallyFull

Gets whether neither a free slot nor an open virtual slot remains.

IsVanillaSafe

property
public bool IsVanillaSafe =>

Gets whether the inventory remains within native physical capacity.

InventoryLayoutSnapshot

method
public InventoryLayoutSnapshot( InventoryContext context, int occupiedVirtualSlots, int freeVirtualSlots, bool isLogicallyFull)

Creates an immutable inventory layout snapshot.