C# 클래스 InvEquipment, Pharos

상속: MonoBehaviour
파일 보기 프로젝트 열기: rstaewen/Pharos 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
doReplace ( InvBaseItem, slot, InvGameItem, item, InvBaseItem, baseItem ) : InvGameItem,

메소드 상세

Equip() 공개 메소드

Equip the specified item and return the item that was replaced.
public Equip ( InvGameItem, item ) : InvGameItem,
item InvGameItem,
리턴 InvGameItem,

GetItem() 공개 메소드

Retrieves the item in the specified slot.
public GetItem ( InvBaseItem, slot ) : InvGameItem,
slot InvBaseItem,
리턴 InvGameItem,

HasEquipped() 공개 메소드

Whether the specified slot currently has an item equipped.
public HasEquipped ( InvBaseItem, slot ) : bool
slot InvBaseItem,
리턴 bool

HasEquipped() 공개 메소드

Whether the specified item is currently equipped.
public HasEquipped ( InvGameItem, item ) : bool
item InvGameItem,
리턴 bool

Replace() 공개 메소드

Equip the specified item automatically replacing an existing one.
public Replace ( InvBaseItem, slot, InvGameItem, item ) : InvGameItem,
slot InvBaseItem,
item InvGameItem,
리턴 InvGameItem,

Unequip() 공개 메소드

Unequip the item from the specified slot, returning the item that was unequipped.
public Unequip ( InvBaseItem, slot ) : InvGameItem,
slot InvBaseItem,
리턴 InvGameItem,

Unequip() 공개 메소드

Unequip the specified item, returning it if the operation was successful.
public Unequip ( InvGameItem, item ) : InvGameItem,
item InvGameItem,
리턴 InvGameItem,