C# Class Pluton.InvItem

Inheritance: CountedInstance
Exibir arquivo Open project: Notulp/Pluton Class Usage Examples

Public Properties

Property Type Description
_item System.Item
containerPref ContainerPreference

Public Methods

Method Description
CanStack ( InvItem item ) : bool
Drop ( Vector3 position, Vector3 offset ) : void
GetContainerPreference ( string category ) : ContainerPreference
GetItemID ( string itemName ) : int
Instantiate ( Vector3 v3 ) : Entity
Instantiate ( Vector3 v3, Quaternion q ) : Entity
InvItem ( System.Item item ) : System
InvItem ( int itemid, int amount = 1 ) : System
InvItem ( string name ) : System
InvItem ( string name, int amount ) : System

Method Details

CanStack() public method

public CanStack ( InvItem item ) : bool
item InvItem
return bool

Drop() public method

public Drop ( Vector3 position, Vector3 offset ) : void
position Vector3
offset Vector3
return void

GetContainerPreference() public static method

public static GetContainerPreference ( string category ) : ContainerPreference
category string
return ContainerPreference

GetItemID() public static method

public static GetItemID ( string itemName ) : int
itemName string
return int

Instantiate() public method

public Instantiate ( Vector3 v3 ) : Entity
v3 Vector3
return Entity

Instantiate() public method

public Instantiate ( Vector3 v3, Quaternion q ) : Entity
v3 Vector3
q UnityEngine.Quaternion
return Entity

InvItem() public method

public InvItem ( System.Item item ) : System
item System.Item
return System

InvItem() public method

public InvItem ( int itemid, int amount = 1 ) : System
itemid int
amount int
return System

InvItem() public method

public InvItem ( string name ) : System
name string
return System

InvItem() public method

public InvItem ( string name, int amount ) : System
name string
amount int
return System

Property Details

_item public_oe property

public Item,System _item
return System.Item

containerPref public_oe property

public ContainerPreference containerPref
return ContainerPreference