Show / Hide Table of Contents

    Class ItemExtensions

    Helper class that provides extensions for the IItem implementations.

    Inheritance
    System.Object
    ItemExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Mechanics.Contracts.Extensions
    Assembly: Fibula.Mechanics.Contracts.dll
    Syntax
    public static class ItemExtensions

    Methods

    | Improve this Doc View Source

    GetCarrier(IItem)

    Attempts to get the creature carrying this item, if any.

    Declaration
    public static ICreature GetCarrier(this IItem item)
    Parameters
    Type Name Description
    IItem item

    The item to find the carrier for.

    Returns
    Type Description
    ICreature

    The carrier of the item, if any.

    • 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.