C# Класс Aura.Channel.World.GameEvents.GlobalBonusManager

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddBonus() публичный Метод

Adds global bonus.
public AddBonus ( string identifier, string name, GlobalBonusStat stat, float multiplier ) : void
identifier string
name string
stat GlobalBonusStat
multiplier float
Результат void

AddDrop() публичный Метод

Adds global drop.
public AddDrop ( string identifier, GlobalDrop drop ) : void
identifier string
drop GlobalDrop
Результат void

AddFishingGround() публичный Метод

Adds event fishing ground.
public AddFishingGround ( string identifier, FishingGroundData fishingGroundData ) : void
identifier string
fishingGroundData FishingGroundData
Результат void

GetBonusMultiplier() публичный Метод

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
Результат bool

GetDrops() публичный Метод

Returns list of all global drops the given creature might drop.
public GetDrops ( Creature creature ) : List
creature Aura.Channel.World.Entities.Creature
Результат List

GetFishingGrounds() публичный Метод

Returns a list of all event fishing grounds.
public GetFishingGrounds ( ) : List
Результат List

RemoveAllDrops() публичный Метод

Removes all global drops associated with the given identifier.
public RemoveAllDrops ( string identifier ) : void
identifier string
Результат void

RemoveAllFishingGrounds() публичный Метод

Removes all event fishing grounds associated with the given identifier.
public RemoveAllFishingGrounds ( string identifier ) : void
identifier string
Результат void

RemoveBonuses() публичный Метод

Removes all global bonuses with given event id.
public RemoveBonuses ( string identifier ) : void
identifier string
Результат void