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()
Fields
Category
public ShopItemCategory Category
Field Value
- ShopItemCategory
public List<ItemKeyTooltip> Tooltips
Field Value
- List<ItemKeyTooltip>
alternativeHoldPos
public Vector3 alternativeHoldPos
Field Value
- Vector3
alternativeHoldRot
public Vector3 alternativeHoldRot
Field Value
- Vector3
budgetCost
Field Value
- int
content
public PropContent content
Field Value
- PropContent
displayName
[FormerlySerializedAs("shopName")]
public string displayName
Field Value
- string
emoteInfo
Field Value
- Emote
groundMassMultiplier
public float groundMassMultiplier
Field Value
- float
groundSizeMultiplier
public float groundSizeMultiplier
Field Value
- float
holdPos
Field Value
- Vector3
holdRotation
public Vector3 holdRotation
Field Value
- Vector3
icon
Field Value
- Sprite
id
Field Value
- byte
itemObject
public GameObject itemObject
Field Value
- GameObject
itemType
public Item.ItemType itemType
Field Value
- Item.ItemType
mass
Field Value
- float
persistentID
public string persistentID
Field Value
- string
price
Field Value
- int
purchasable
Field Value
- bool
quantity
Field Value
- int
rarity
Field Value
- float
spawnable
Field Value
- bool
[FormerlySerializedAs("toolBudget")]
public int toolBudgetCost
Field Value
- int
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
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