Update Healer Man server
This commit is contained in:
1 parent
f8314e7de1
commit
1fedb9368d
76 files changed
+20556
-2523
No files matched your search
@@ -0,0 +1,23 @@
|
||||
export interface RotationDecisionTelemetryEvent {
|
||||
readonly occurredAt: number;
|
||||
readonly actorId: string;
|
||||
readonly abilityId: string;
|
||||
readonly targetId: string | null;
|
||||
readonly profileId: string;
|
||||
readonly ruleId: string;
|
||||
readonly reason: string;
|
||||
}
|
||||
|
||||
type RotationDecisionListener = (event: RotationDecisionTelemetryEvent) => void;
|
||||
|
||||
const listeners = new Set<RotationDecisionListener>();
|
||||
|
||||
export function subscribeRotationDecisions(listener: RotationDecisionListener): () => void {
|
||||
listeners.add(listener);
|
||||
return () => listeners.delete(listener);
|
||||
}
|
||||
|
||||
/** Observational only: listeners cannot alter or delay the selected action. */
|
||||
export function emitRotationDecision(event: RotationDecisionTelemetryEvent): void {
|
||||
for (const listener of listeners) listener(event);
|
||||
}
|
||||
Reference in new issue
Block a user