C# 클래스 DOL.GS.LootMgr

the LootMgr holds pointers to all LootGenerators at associates the correct LootGenerator with a given Mob
파일 보기 프로젝트 열기: Los-Ojos/DOLSharp-1127

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

GetLoot() 공개 정적인 메소드

Returns the loot for the given Mob
public static GetLoot ( GameNPC mob, GameObject killer ) : ItemTemplate[]
mob GameNPC
killer GameObject
리턴 ItemTemplate[]

GetLootGenerators() 공개 정적인 메소드

Returns the ILootGenerators for the given mobs
public static GetLootGenerators ( GameNPC mob ) : IList
mob GameNPC
리턴 IList

Init() 공개 정적인 메소드

Initializes the LootMgr. This function must be called before the LootMgr can be used!
public static Init ( ) : bool
리턴 bool

RefreshGenerators() 공개 정적인 메소드

Call the refresh method for each generator to update loot, if implemented
public static RefreshGenerators ( GameNPC mob ) : void
mob GameNPC
리턴 void

RegisterLootGenerator() 공개 정적인 메소드

Register a generator for the given parameters, If all parameters are null a global generaotr for all mobs will be registered
public static RegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction, int mobregion ) : void
generator ILootGenerator
mobname string
mobguild string
mobfaction string
mobregion int
리턴 void

UnRegisterLootGenerator() 공개 정적인 메소드

public static UnRegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction ) : void
generator ILootGenerator
mobname string
mobguild string
mobfaction string
리턴 void

UnRegisterLootGenerator() 공개 정적인 메소드

Unregister a generator for the given parameters
public static UnRegisterLootGenerator ( ILootGenerator generator, string mobname, string mobguild, string mobfaction, int mobregion ) : void
generator ILootGenerator
mobname string
mobguild string
mobfaction string
mobregion int
리턴 void