Interface IRegistrar<HOST>
- IRegistrar<E>(emitterOrBus: undefined | E, events: keyof Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E> | (keyof Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>)[], priority?: number): HOST
-
Parameters
-
emitterOrBus: undefined | E
-
-
Optional
priority: number
Returns HOST
- IRegistrar<E, K>(emitter: undefined | WeakRef<E>, events: keyof Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E> | (keyof Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>)[], priority?: number): HOST
-
Type Parameters
-
E extends HostOrHostClass
-
K extends string | number | symbol
Parameters
-
emitter: undefined | WeakRef<E>
-
-
Optional
priority: number
Returns HOST
- IRegistrar<E, K>(emitterOrBus: undefined | E, events: K | K[], predicate: ((...params: [host: HostFromHostOrHostClass<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>, ...args: Extract<Parameters<Extract<Extract<Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>[K], AnyFunction<any>>, AnyFunction<any>>>, any[]>[]]) => boolean), priority?: number): HOST
-
Type Parameters
-
-
K extends string | number | symbol
Parameters
-
emitterOrBus: undefined | E
-
events: K | K[]
-
-
- (...params: [host: HostFromHostOrHostClass<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>, ...args: Extract<Parameters<Extract<Extract<Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>[K], AnyFunction<any>>, AnyFunction<any>>>, any[]>[]]): boolean
-
Returns boolean
-
Optional
priority: number
Returns HOST
- IRegistrar<E, K>(emitter: undefined | WeakRef<E>, events: K | K[], predicate: ((...params: [host: HostFromHostOrHostClass<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>, ...args: Extract<Parameters<Extract<Extract<Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>[K], AnyFunction<any>>, AnyFunction<any>>>, any[]>[]]) => boolean), priority?: number): HOST
-
Type Parameters
-
E extends HostOrHostClass
-
K extends string | number | symbol
Parameters
-
emitter: undefined | WeakRef<E>
-
events: K | K[]
-
-
- (...params: [host: HostFromHostOrHostClass<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>, ...args: Extract<Parameters<Extract<Extract<Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>[K], AnyFunction<any>>, AnyFunction<any>>>, any[]>[]]): boolean
-
Returns boolean
-
Optional
priority: number
Returns HOST
- IRegistrar<E>(emitterOrBus: undefined | E, events: keyof Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E> | (keyof Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>)[], observer: default<any>, priority?: number): HOST
-
Parameters
-
emitterOrBus: undefined | E
-
-
observer: default<any>
-
Optional
priority: number
Returns HOST
- IRegistrar<E>(emitter: undefined | WeakRef<E>, events: keyof Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E> | (keyof Events<E extends EventBus ? ReturnType<{
0(): default<any, any, any, any, any>;
1(): default;
10(): default<any, undefined>;
11(): Game;
12(): default<unknown, number, NPC | Player>;
13(): default;
14(): default;
15(): default;
16(): default;
17(): default.Events;
18(): default;
19(): default;
2(): default;
20(): default;
21(): MilestoneManager;
22(): default;
23(): default;
24(): default;
25(): default;
26(): default;
27(): default;
28(): default.Events;
29(): default;
3(): default;
30(): default;
31(): default;
32(): default;
33(): default;
34(): Ui;
35(): default;
36(): default;
37(): default;
38(): default;
39(): default;
4(): default;
40(): default;
41(): default;
42(): default<IUsableActionRequirements, IUsableActionDefinition<IUsableActionRequirements>>;
43(): WorldRenderer;
5(): default;
6(): default;
7(): default;
8(): default<unknown, number, EntityReferenceTypes, unknown>;
9(): default<unknown, number, EntityReferenceTypes, unknown>;
}[E]> : E>)[], observer: default<any>, priority?: number): HOST
-
Type Parameters
-
E extends HostOrHostClass
Parameters
-
emitter: undefined | WeakRef<E>
-
-
observer: default<any>
-
Optional
priority: number
Returns HOST
Methods
end
- end(): void
-
Returns void
inherit
- inherit(registrar: IRegistrar<any>): void
-
Returns void
setDefaultPriority
- setDefaultPriority(priority?: number): IRegistrar<HOST>
-
Parameters
-
Optional
priority: number
start
- start(): void
-
Returns void
tick
- tick(observer: default<any>): HOST
-
Returns HOST
- tick(predicate: ((...params: [host: default, options: IIslandTickOptions]) => boolean)): HOST
-
Returns HOST
Observes events an on emitter to perform refresh functionality or delete caches for JIT stuff.