C# Class InvEquipment, Pharos

Inheritance: MonoBehaviour
Afficher le fichier Open project: rstaewen/Pharos Class Usage Examples

Méthodes publiques

Méthode Description
Equip ( InvGameItem, item ) : InvGameItem,

Equip the specified item and return the item that was replaced.

GetItem ( InvBaseItem, slot ) : InvGameItem,

Retrieves the item in the specified slot.

HasEquipped ( InvBaseItem, slot ) : bool

Whether the specified slot currently has an item equipped.

HasEquipped ( InvGameItem, item ) : bool

Whether the specified item is currently equipped.

Replace ( InvBaseItem, slot, InvGameItem, item ) : InvGameItem,

Equip the specified item automatically replacing an existing one.

Unequip ( InvBaseItem, slot ) : InvGameItem,

Unequip the item from the specified slot, returning the item that was unequipped.

Unequip ( InvGameItem, item ) : InvGameItem,

Unequip the specified item, returning it if the operation was successful.

Private Methods

Méthode Description
doReplace ( InvBaseItem, slot, InvGameItem, item, InvBaseItem, baseItem ) : InvGameItem,

Method Details

Equip() public méthode

Equip the specified item and return the item that was replaced.
public Equip ( InvGameItem, item ) : InvGameItem,
item InvGameItem,
Résultat InvGameItem,

GetItem() public méthode

Retrieves the item in the specified slot.
public GetItem ( InvBaseItem, slot ) : InvGameItem,
slot InvBaseItem,
Résultat InvGameItem,

HasEquipped() public méthode

Whether the specified slot currently has an item equipped.
public HasEquipped ( InvBaseItem, slot ) : bool
slot InvBaseItem,
Résultat bool

HasEquipped() public méthode

Whether the specified item is currently equipped.
public HasEquipped ( InvGameItem, item ) : bool
item InvGameItem,
Résultat bool

Replace() public méthode

Equip the specified item automatically replacing an existing one.
public Replace ( InvBaseItem, slot, InvGameItem, item ) : InvGameItem,
slot InvBaseItem,
item InvGameItem,
Résultat InvGameItem,

Unequip() public méthode

Unequip the item from the specified slot, returning the item that was unequipped.
public Unequip ( InvBaseItem, slot ) : InvGameItem,
slot InvBaseItem,
Résultat InvGameItem,

Unequip() public méthode

Unequip the specified item, returning it if the operation was successful.
public Unequip ( InvGameItem, item ) : InvGameItem,
item InvGameItem,
Résultat InvGameItem,