C# Class Aura.Channel.World.GameEvents.GlobalBonusManager

Mostrar archivo Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
AddBonus ( string identifier, string name, GlobalBonusStat stat, float multiplier ) : void

Adds global bonus.

AddDrop ( string identifier, GlobalDrop drop ) : void

Adds global drop.

AddFishingGround ( string identifier, FishingGroundData fishingGroundData ) : void

Adds event fishing ground.

GetBonusMultiplier ( GlobalBonusStat stat, float &multiplier, string &eventNames ) : bool

Returns whether there are any bonuses for the given stat, and if so returns the total multiplier and the names of the events that affected it via out parameter.

GetDrops ( Creature creature ) : List

Returns list of all global drops the given creature might drop.

GetFishingGrounds ( ) : List

Returns a list of all event fishing grounds.

RemoveAllDrops ( string identifier ) : void

Removes all global drops associated with the given identifier.

RemoveAllFishingGrounds ( string identifier ) : void

Removes all event fishing grounds associated with the given identifier.

RemoveBonuses ( string identifier ) : void

Removes all global bonuses with given event id.

Method Details

AddBonus() public method

Adds global bonus.
public AddBonus ( string identifier, string name, GlobalBonusStat stat, float multiplier ) : void
identifier string
name string
stat GlobalBonusStat
multiplier float
return void

AddDrop() public method

Adds global drop.
public AddDrop ( string identifier, GlobalDrop drop ) : void
identifier string
drop GlobalDrop
return void

AddFishingGround() public method

Adds event fishing ground.
public AddFishingGround ( string identifier, FishingGroundData fishingGroundData ) : void
identifier string
fishingGroundData FishingGroundData
return void

GetBonusMultiplier() public method

Returns whether there are any bonuses for the given stat, and if so returns the total multiplier and the names of the events that affected it via out parameter.
public GetBonusMultiplier ( GlobalBonusStat stat, float &multiplier, string &eventNames ) : bool
stat GlobalBonusStat
multiplier float
eventNames string
return bool

GetDrops() public method

Returns list of all global drops the given creature might drop.
public GetDrops ( Creature creature ) : List
creature Aura.Channel.World.Entities.Creature
return List

GetFishingGrounds() public method

Returns a list of all event fishing grounds.
public GetFishingGrounds ( ) : List
return List

RemoveAllDrops() public method

Removes all global drops associated with the given identifier.
public RemoveAllDrops ( string identifier ) : void
identifier string
return void

RemoveAllFishingGrounds() public method

Removes all event fishing grounds associated with the given identifier.
public RemoveAllFishingGrounds ( string identifier ) : void
identifier string
return void

RemoveBonuses() public method

Removes all global bonuses with given event id.
public RemoveBonuses ( string identifier ) : void
identifier string
return void