Table of Contents

Class ItemAttribute

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Represents an attribute instance for an item, such as strength, durability, or custom stat. Holds a reference to the attribute template and its current value.

public class ItemAttribute
Inheritance
ItemAttribute
Inherited Members

Constructors

ItemAttribute(int, int)

Constructs an ItemAttribute from a template ID and value. Looks up the template using the provided ID.

public ItemAttribute(int templateID, int value)

Parameters

templateID int

The ID of the attribute template.

value int

The initial value for this attribute.

Fields

Value

The current value of this attribute instance.

public int Value

Field Value

int

Properties

Template

The template that defines the type and metadata of this attribute.

public ItemAttributeTemplate Template { get; }

Property Value

ItemAttributeTemplate