1234567891011121314151617181920212223242526272829303132333435 |
- /** @format */
- export class Delegate {
- public mListener: Function
- public get listener(): Function {
- return this.mListener
- }
- public mArgArray: any[]
- public get argArray(): any[] {
- return this.mArgArray
- }
- public mIsOnce = false
- public get isOnce(): boolean {
- return this.mIsOnce
- }
- public set isOnce(isOnce: boolean) {
- this.mIsOnce = isOnce
- }
- public mPriority: number
- public set priority(priority: number) {
- this.mPriority = priority
- }
- public get priority(): number {
- return this.mPriority
- }
- public constructor(listener: Function, argArray: any[], isOnce = false, priority = 0) {
- this.mListener = listener
- this.mArgArray = argArray
- this.mIsOnce = isOnce
- this.mPriority = priority
- }
- }
|