Table of Contents

Class Item

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
[CreateAssetMenu(fileName = "Item", menuName = "W/Item", order = -1)]
public class Item : ScriptableObject
Inheritance
Item
Derived
Inherited Members
Extension Methods

Constructors

Item()

public Item()

Fields

Category

public ShopItemCategory Category

Field Value

ShopItemCategory

Tooltips

public List<ItemKeyTooltip> Tooltips

Field Value

List<ItemKeyTooltip>

alternativeHoldPos

public Vector3 alternativeHoldPos

Field Value

Vector3

alternativeHoldRot

public Vector3 alternativeHoldRot

Field Value

Vector3

budgetCost

public int budgetCost

Field Value

int

content

public PropContent content

Field Value

PropContent

displayName

[FormerlySerializedAs("shopName")]
public string displayName

Field Value

string

emoteInfo

public Emote emoteInfo

Field Value

Emote

groundMassMultiplier

public float groundMassMultiplier

Field Value

float

groundSizeMultiplier

public float groundSizeMultiplier

Field Value

float

holdPos

public Vector3 holdPos

Field Value

Vector3

holdRotation

public Vector3 holdRotation

Field Value

Vector3

icon

public Sprite icon

Field Value

Sprite

id

public byte id

Field Value

byte

itemObject

public GameObject itemObject

Field Value

GameObject

itemType

public Item.ItemType itemType

Field Value

Item.ItemType

mass

public float mass

Field Value

float

persistentID

public string persistentID

Field Value

string

price

public int price

Field Value

int

purchasable

public bool purchasable

Field Value

bool

quantity

public int quantity

Field Value

int

rarity

public float rarity

Field Value

float

spawnable

public bool spawnable

Field Value

bool

toolBudgetCost

[FormerlySerializedAs("toolBudget")]
public int toolBudgetCost

Field Value

int

toolSpawnRarity

public RARITY toolSpawnRarity

Field Value

RARITY

useAlternativeHoldingPos

public bool useAlternativeHoldingPos

Field Value

bool

useAlternativeHoldingRot

public bool useAlternativeHoldingRot

Field Value

bool

Properties

PersistentID

public Guid PersistentID { get; set; }

Property Value

Guid

ToolRarity

public float ToolRarity { get; }

Property Value

float

Methods

EquipItem(Item)

[ConsoleCommand]
public static void EquipItem(Item item)

Parameters

item Item

GetLocalizedDisplayName()

public string GetLocalizedDisplayName()

Returns

string

GetTootipData()

public IEnumerable<IHaveUIData> GetTootipData()

Returns

IEnumerable<IHaveUIData>

ShowEmoteInfo()

public bool ShowEmoteInfo()

Returns

bool

SpawnItem(Item)

[ConsoleCommand]
public static void SpawnItem(Item item)

Parameters

item Item