Methods
Static addAnyBuffCreatedListener
- addAnyBuffCreatedListener(onBuffCreatedListener: ((buff: default) => void)): void
- 
Parameters
- 
onBuffCreatedListener: ((buff: default) => void)
 
 Returns void
Static addAnyBuffDestroyListener
- addAnyBuffDestroyListener(onBuffDestroyListener: ((buff: default) => void)): void
- 
Parameters
- 
onBuffDestroyListener: ((buff: default) => void)
 
 Returns void
Static addAnyBuffStackCountChangeListener
- addAnyBuffStackCountChangeListener(onBuffStackCountChangeListener: ((buff: default) => void)): void
- 
Parameters
- 
onBuffStackCountChangeListener: ((buff: default) => void)
 
 Returns void
Static addBuff
- addBuff(unit: unit, buffTypeId: string, caster?: unit): default
- 
Parameters
- 
unit: unit
- 
buffTypeId: string
- 
Optionalcaster: unit
 
 
Static clearUnitBuff
- clearUnitBuff(unit: unit, buffTypeId: string): void
- 
Parameters
- 
unit: unit
- 
buffTypeId: string
 
 Returns void
Static clearUnitBuffs
- clearUnitBuffs(unit: unit, onlyDeBuff?: boolean): void
- 
Parameters
- 
unit: unit
- 
onlyDeBuff: boolean = false
 
 Returns void
Static clearUnitBuffsByClass
- clearUnitBuffsByClass(unit: unit, clazz: string): void
- 
Returns void
Static forAllBuffTypes
- forAllBuffTypes(callback: ((buffType: AppBuffType) => void), buffTypeClass?: string): void
- 
Parameters
- 
callback: ((buffType: AppBuffType) => void)
- 
- (buffType: AppBuffType): void
- 
Returns void
 
 
- 
OptionalbuffTypeClass: string
 
 Returns void
Static forAllBuffs
- forAllBuffs(callback: ((buff: default) => void), buffTypeId?: string): void
- 
Parameters
- 
callback: ((buff: default) => void)
- 
OptionalbuffTypeId: string
 
 Returns void
Static forUnitBuffs
- forUnitBuffs(unit: unit, callback: ((buff: default) => void)): void
- 
Parameters
- 
unit: unit
- 
callback: ((buff: default) => void)
 
 Returns void
Static getBuffType
- getBuffType(buffTypeId: string): AppBuffType
- 
Returns AppBuffType
Static getPlayerUnitBuff
- getPlayerUnitBuff(player: player, buffTypeId: string): default
- 
Parameters
- 
player: player
- 
buffTypeId: string
 
 
Static getUnitBuff
- getUnitBuff(unit: unit, buffTypeId: string): default
- 
Parameters
- 
unit: unit
- 
buffTypeId: string
 
 
Static getUnitBuffAttributes
- getUnitBuffAttributes(unit: unit): AppAttribute[]
- 
Returns AppAttribute[]
Static getUnitBuffs
- getUnitBuffs(unit: unit): BuffSet
- 
Returns BuffSet
Static hasUnitBuff
- hasUnitBuff(unit: unit, buffTypeId: string): boolean
- 
Parameters
- 
unit: unit
- 
buffTypeId: string
 
 Returns boolean
Static registerBuffCreatedEvent
- registerBuffCreatedEvent(buffTypeId: string, onCreated: ((buff: default) => void)): void
- 
Parameters
- 
buffTypeId: string
- 
onCreated: ((buff: default) => void)
 
 Returns void
Static registerBuffDestroyEvent
- registerBuffDestroyEvent(buffTypeId: string, onDestroy: ((buff: default) => void)): void
- 
Parameters
- 
buffTypeId: string
- 
onDestroy: ((buff: default) => void)
 
 Returns void
Static registerBuffIntervalEvent
- registerBuffIntervalEvent(buffTypeId: string, onInterval: ((buff: default) => void)): void
- 
Parameters
- 
buffTypeId: string
- 
onInterval: ((buff: default) => void)
 
 Returns void
Static registerBuffType
- registerBuffType(buffType: AppBuffType): void
- 
Returns void
Static registerBuffUpdateEvent
- registerBuffUpdateEvent(buffTypeId: string, onUpdate: ((buff: default, tpf: number) => void)): void
- 
Parameters
- 
buffTypeId: string
- 
onUpdate: ((buff: default, tpf: number) => void)
- 
- (buff: default, tpf: number): void
- 
Returns void
 
 
 
 Returns void
 
 
 
添加任意buff创建事件 监听回调