C# 클래스 Aura.Channel.World.Shops.PersonalShop

파일 보기 프로젝트 열기: aura-project/aura 1 사용 예제들

공개 메소드들

메소드 설명
Buy ( Creature buyer, long itemEntityId, bool directBankTransaction ) : bool

Attempts to buy the given item for buyer, returns true if successful.

CanPlace ( Creature creature, string license ) : bool

Returns true if creature can place shop at their current location.

ChangeDescription ( string description ) : void

Changes shop's description.

ChangeTitle ( string title ) : void

Changes shop's title.

CloseFor ( Creature creature ) : void

Opens shop for given creature.

GetAllItems ( ) : List

Returns new list of all items in shop's bag.

GetBagLayout ( ) : string

Returns the layout of the bag, used in the shop open packet.

GetPricedItems ( ) : List

Returns new list of all items with prices in shop's bag.

OpenFor ( Creature creature ) : void

Opens shop for given creature.

PersonalShop ( Creature owner, Item bag, Item license ) : Aura.Channel.Network.Sending

Creates new PersonalShop instance. Does not actually create shop.

SetOverseer ( Creature overseer, long itemEntityId ) : bool

Sets the shop's overseer (brownie/pet).

SetPrice ( long itemEntityId, int price ) : bool

Sets the price for the given item, returns true on success.

SetPrices ( long itemEntityId, int price ) : bool

Sets the price for the given item, returns true on success.

SetUp ( string title, string description ) : bool

Sets up shop, spawning the prop.

TakeDown ( ) : void

Closes the shop for all customers and takes it down, removing the prop.

비공개 메소드들

메소드 설명
ForAllCustomers ( Action action ) : void

Executes the given action for all current customers.

GetPlacementPosition ( Position pos, byte direction ) : Position

Returns position for the shop, based on given position and direction.

GetShopPropId ( Item item ) : int

Returns the prop id to be used for the given bag.

UpdatePrice ( Item item, int price ) : void

Updates price for given item and updates clients.

메소드 상세

Buy() 공개 메소드

Attempts to buy the given item for buyer, returns true if successful.
public Buy ( Creature buyer, long itemEntityId, bool directBankTransaction ) : bool
buyer Aura.Channel.World.Entities.Creature
itemEntityId long
directBankTransaction bool
리턴 bool

CanPlace() 공개 정적인 메소드

Returns true if creature can place shop at their current location.
public static CanPlace ( Creature creature, string license ) : bool
creature Aura.Channel.World.Entities.Creature
license string
리턴 bool

ChangeDescription() 공개 메소드

Changes shop's description.
public ChangeDescription ( string description ) : void
description string
리턴 void

ChangeTitle() 공개 메소드

Changes shop's title.
public ChangeTitle ( string title ) : void
title string
리턴 void

CloseFor() 공개 메소드

Opens shop for given creature.
public CloseFor ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
리턴 void

GetAllItems() 공개 메소드

Returns new list of all items in shop's bag.
public GetAllItems ( ) : List
리턴 List

GetBagLayout() 공개 메소드

Returns the layout of the bag, used in the shop open packet.
public GetBagLayout ( ) : string
리턴 string

GetPricedItems() 공개 메소드

Returns new list of all items with prices in shop's bag.
public GetPricedItems ( ) : List
리턴 List

OpenFor() 공개 메소드

Opens shop for given creature.
public OpenFor ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
리턴 void

PersonalShop() 공개 메소드

Creates new PersonalShop instance. Does not actually create shop.
public PersonalShop ( Creature owner, Item bag, Item license ) : Aura.Channel.Network.Sending
owner Aura.Channel.World.Entities.Creature
bag Item
license Item
리턴 Aura.Channel.Network.Sending

SetOverseer() 공개 메소드

Sets the shop's overseer (brownie/pet).
public SetOverseer ( Creature overseer, long itemEntityId ) : bool
overseer Aura.Channel.World.Entities.Creature Set to null to remove overseer.
itemEntityId long
리턴 bool

SetPrice() 공개 메소드

Sets the price for the given item, returns true on success.
public SetPrice ( long itemEntityId, int price ) : bool
itemEntityId long
price int
리턴 bool

SetPrices() 공개 메소드

Sets the price for the given item, returns true on success.
public SetPrices ( long itemEntityId, int price ) : bool
itemEntityId long
price int
리턴 bool

SetUp() 공개 메소드

Sets up shop, spawning the prop.
public SetUp ( string title, string description ) : bool
title string
description string
리턴 bool

TakeDown() 공개 메소드

Closes the shop for all customers and takes it down, removing the prop.
public TakeDown ( ) : void
리턴 void