C# Class Item, TestGame

Inheritance: MonoBehaviour
Show file Open project: liuxq/TestGame Class Usage Examples

Public Properties

Property Type Description
indexItemInList int
itemDesc string
itemID int
itemIcon Sprite
itemIndex int
itemModel GameObject
itemName string
itemType ItemType
itemUUID UInt64
itemValue int
itemWeight float
maxStack int
rarity int

Public Methods

Method Description
Item ( ) : System
Item ( string name, int id, string desc, Sprite icon, GameObject model, int maxStack, ItemType type, string sendmessagetext, List itemAttributes ) : System
getCopy ( ) : Item
isConsumeItem ( ) : bool
isEquipItem ( ) : bool

Method Details

Item() public method

public Item ( ) : System
return System

Item() public method

public Item ( string name, int id, string desc, Sprite icon, GameObject model, int maxStack, ItemType type, string sendmessagetext, List itemAttributes ) : System
name string
id int
desc string
icon Sprite
model GameObject
maxStack int
type ItemType
sendmessagetext string
itemAttributes List
return System

getCopy() public method

public getCopy ( ) : Item
return Item

isConsumeItem() public method

public isConsumeItem ( ) : bool
return bool

isEquipItem() public method

public isEquipItem ( ) : bool
return bool

Property Details

indexItemInList public property

public int indexItemInList
return int

itemDesc public property

public string itemDesc
return string

itemID public property

public int itemID
return int

itemIcon public property

public Sprite itemIcon
return Sprite

itemIndex public property

public int itemIndex
return int

itemModel public property

public GameObject itemModel
return GameObject

itemName public property

public string itemName
return string

itemType public property

public ItemType itemType
return ItemType

itemUUID public property

public UInt64 itemUUID
return UInt64

itemValue public property

public int itemValue
return int

itemWeight public property

public float itemWeight
return float

maxStack public property

public int maxStack
return int

rarity public property

public int rarity
return int