Method | Description | |
---|---|---|
GetLoot ( GameNPC mob, GameObject killer ) : ItemTemplate[] |
Returns the loot for the given Mob
|
|
GetLootGenerators ( GameNPC mob ) : IList |
Returns the ILootGenerators for the given mobs
|
|
Init ( ) : bool |
Initializes the LootMgr. This function must be called before the LootMgr can be used!
|
|
RefreshGenerators ( GameNPC mob ) : void |
Call the refresh method for each generator to update loot, if implemented
|
|
RegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction, int mobregion ) : void |
Register a generator for the given parameters, If all parameters are null a global generaotr for all mobs will be registered
|
|
UnRegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction ) : void | ||
UnRegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction, int mobregion ) : void |
Unregister a generator for the given parameters
|
Method | Description | |
---|---|---|
GetGeneratorInCache ( LootGenerator dbGenerator ) : ILootGenerator |
Returns a generator from cache
|
|
PutGeneratorInCache ( LootGenerator dbGenerator, ILootGenerator generator ) : void |
Stores a generator in a cache to reused the same generators multiple times
|
public static GetLoot ( GameNPC mob, GameObject killer ) : ItemTemplate[] | ||
mob | GameNPC | |
killer | GameObject | |
return | ItemTemplate[] |
public static GetLootGenerators ( GameNPC mob ) : IList | ||
mob | GameNPC | |
return | IList |
public static RefreshGenerators ( GameNPC mob ) : void | ||
mob | GameNPC | |
return | void |
public static RegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction, int mobregion ) : void | ||
generator | ILootGenerator | |
mobname | string | |
mobguild | string | |
mobfaction | string | |
mobregion | int | |
return | void |
public static UnRegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction ) : void | ||
generator | ILootGenerator | |
mobname | string | |
mobguild | string | |
mobfaction | string | |
return | void |
public static UnRegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction, int mobregion ) : void | ||
generator | ILootGenerator | |
mobname | string | |
mobguild | string | |
mobfaction | string | |
mobregion | int | |
return | void |