Show / Hide Table of Contents

    Interface IItemFactory

    Interface for an item factory.

    Inherited Members
    IThingFactory.Create(IThingCreationArguments)
    Namespace: Fibula.Items.Contracts.Abstractions
    Assembly: Fibula.Items.Contracts.dll
    Syntax
    public interface IItemFactory : IThingFactory

    Methods

    | Improve this Doc View Source

    CreateItem(IThingCreationArguments)

    Creates a new IItem.

    Declaration
    IItem CreateItem(IThingCreationArguments creationArguments)
    Parameters
    Type Name Description
    IThingCreationArguments creationArguments

    The arguments for the IItem creation.

    Returns
    Type Description
    IItem

    A new instance of the IItem.

    | Improve this Doc View Source

    FindTypeById(UInt16)

    Looks up an IItemTypeEntity given a type id.

    Declaration
    IItemTypeEntity FindTypeById(ushort typeId)
    Parameters
    Type Name Description
    System.UInt16 typeId

    The id of the type to look for.

    Returns
    Type Description
    IItemTypeEntity

    A reference to the IItemTypeEntity found, and null if not found.

    Events

    | Improve this Doc View Source

    ItemCreated

    Event called when an item is created.

    Declaration
    event OnItemCreated ItemCreated
    Event Type
    Type Description
    OnItemCreated

    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.