Class ItemDefinition
Immutable custom-item recipe. Template metadata is resolved when game data is available.
public sealed class ItemDefinition
- Inheritance
-
ItemDefinition
- Inherited Members
Properties
Description
public ContentId? Description { get; }
Property Value
GameplayOverrides
public ItemGameplayOverrides GameplayOverrides { get; }
Property Value
Id
public ContentId Id { get; }
Property Value
IsTemplateResolved
public bool IsTemplateResolved { get; }
Property Value
Name
public ContentId? Name { get; }
Property Value
TemplateClass
public string TemplateClass { get; }
Property Value
TemplateGameplay
public ItemGameplayProperties? TemplateGameplay { get; }
Property Value
TemplateGeneration
public int TemplateGeneration { get; }
Property Value
TemplateItemId
public string TemplateItemId { get; }
Property Value
TemplateValue
public int TemplateValue { get; }
Property Value
Value
public int Value { get; }
Property Value
ValueOverride
public int? ValueOverride { get; }
Property Value
- int?
Methods
WithGameplay(ItemGameplayOverrides)
Returns a new definition with supported gameplay overrides.
public ItemDefinition WithGameplay(ItemGameplayOverrides gameplay)
Parameters
gameplayItemGameplayOverrides
Returns
WithLocalization(ContentId, ContentId)
Returns a new definition with name and description keys owned by the item's namespace.
public ItemDefinition WithLocalization(ContentId name, ContentId description)
Parameters
Returns
WithValue(int)
Returns a new definition with an explicit nonnegative base economic value.
public ItemDefinition WithValue(int value)
Parameters
valueint