C# Class Codebreak.Service.World.Game.Exchange.ShopExchange

Inheritance: AbstractExchange
Show file Open project: hussein-aitlahcen/codebreak

Public Methods

Method Description
BuyItem ( AbstractEntity entity, long templateId, int quantity ) : void

Create ( ) : void

Leave ( bool success = false ) : void

SellItem ( AbstractEntity entity, long guid, int quantity, long price = -1 ) : void

ShopExchange ( CharacterEntity character, NonPlayerCharacterEntity npc ) : System

Protected Methods

Method Description
SerializeAs_ExchangeCreate ( ) : string

Method Details

BuyItem() public method

public BuyItem ( AbstractEntity entity, long templateId, int quantity ) : void
entity Codebreak.Service.World.Game.Entity.AbstractEntity
templateId long
quantity int
return void

Create() public method

public Create ( ) : void
return void

Leave() public method

public Leave ( bool success = false ) : void
success bool
return void

SellItem() public method

public SellItem ( AbstractEntity entity, long guid, int quantity, long price = -1 ) : void
entity Codebreak.Service.World.Game.Entity.AbstractEntity
guid long
quantity int
price long
return void

SerializeAs_ExchangeCreate() protected method

protected SerializeAs_ExchangeCreate ( ) : string
return string

ShopExchange() public method

public ShopExchange ( CharacterEntity character, NonPlayerCharacterEntity npc ) : System
character Codebreak.Service.World.Game.Entity.CharacterEntity
npc NonPlayerCharacterEntity
return System