Class ItemCreationArguments
Class that implements IThingCreationArguments, for the creation of an item.
Inheritance
System.Object
ItemCreationArguments
Implements
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.Items
Assembly: Fibula.Items.dll
Syntax
public class ItemCreationArguments : IThingCreationArguments
Properties
| Improve this Doc View SourceAttributes
Gets or sets the attributes to set in the item to create.
Declaration
public IReadOnlyCollection<(ItemAttribute, IConvertible)> Attributes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<System.ValueTuple<ItemAttribute, System.IConvertible>> |
TypeId
Gets or sets the id of type for the item to create.
Declaration
public ushort TypeId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceWithTypeId(UInt16)
Convenient method that initializes ItemCreationArguments with the given type id.
Declaration
public static ItemCreationArguments WithTypeId(ushort typeId)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | typeId | The type id of the item to create. |
Returns
Type | Description |
---|---|
ItemCreationArguments | A new instance of ItemCreationArguments specifying the given type id. |