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 SourceGetCarrier(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. |