Show / Hide Table of Contents

    Interface IInventory

    Interface for a creature that keeps an inventory of IItems in itself, and the properties it imbues the owner ICreature with.

    Namespace: Fibula.Creatures.Contracts.Abstractions
    Assembly: Fibula.Creatures.Contracts.dll
    Syntax
    public interface IInventory

    Properties

    | Improve this Doc View Source

    Item[Byte]

    Gets the IItem at a given position of this inventory.

    Declaration
    IItem this[byte position] { get; }
    Parameters
    Type Name Description
    System.Byte position

    The position where to get the item from.

    Property Value
    Type Description
    IItem

    The IItem, if any was found.

    | Improve this Doc View Source

    Owner

    Gets a reference to the owner of this inventory.

    Declaration
    ICreature Owner { get; }
    Property Value
    Type Description
    ICreature

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.