Interface IItemFactory
Interface for an item factory.
Inherited Members
Namespace: Fibula.Items.Contracts.Abstractions
Assembly: Fibula.Items.Contracts.dll
Syntax
public interface IItemFactory : IThingFactory
Methods
| Improve this Doc View SourceCreateItem(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. |
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 SourceItemCreated
Event called when an item is created.
Declaration
event OnItemCreated ItemCreated
Event Type
Type | Description |
---|---|
OnItemCreated |