OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class RustInventoryPage

Inheritance
System.Object
RustInventoryPage
Implements
IInventoryPage
IReadOnlyCollection<IInventoryItem>
Namespace: OpenMod.Rust.Items
Assembly: OpenMod.Rust.dll
Syntax
public class RustInventoryPage : object, IInventoryPage, IReadOnlyCollection<IInventoryItem>

Constructors

| Improve this Doc View Source

RustInventoryPage(ItemContainer, IInventory, Nullable<String>)

Declaration
public RustInventoryPage(ItemContainer itemContainer, IInventory inventory, string? name)
Parameters
Type Name Description
ItemContainer itemContainer
IInventory inventory
System.Nullable<System.String> name

Properties

| Improve this Doc View Source

Capacity

Declaration
public int Capacity { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Count

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Inventory

Declaration
public IInventory Inventory { get; }
Property Value
Type Description
IInventory
| Improve this Doc View Source

IsFull

Declaration
public bool IsFull { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ItemContainer

Declaration
public ItemContainer ItemContainer { get; }
Property Value
Type Description
ItemContainer
| Improve this Doc View Source

Items

Declaration
public IReadOnlyCollection<IInventoryItem> Items { get; }
Property Value
Type Description
IReadOnlyCollection<IInventoryItem>
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetEnumerator()

Declaration
public IEnumerator<IInventoryItem> GetEnumerator()
Returns
Type Description
IEnumerator<IInventoryItem>

Implements

IInventoryPage
IReadOnlyCollection<>

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)