decord/source/modules/game_relationships/GameRelationshipManager.tsx

44 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13978
// Function ID: 13979
2026-07-29 08:29:29 +00:00
// Name: _initialize
2026-08-24 06:08:38 +00:00
// Dependencies: [5411, 676, 4726, 709, 7178, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 13978 (_initialize)
import dispatcherDefault from "dispatcher" /* 709 */;
import initializeDefault from "initialize" /* 4726 */;
import closure_2 from "recountRelationshipTypes" /* 5411 */;
import { RelationshipTypes } from "ME" /* 676 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
initializeDefault;
2026-07-29 08:29:29 +00:00
class GameRelationshipManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.handlePostConnectionOpen = function handlePostConnectionOpen() {
gameRelationships = gameRelationships.getGameRelationships();
const set = new Set();
const values = gameRelationships.values();
const item = values.forEach((type) => {
2026-08-24 06:08:38 +00:00
if (type.type === closure_1_3.PENDING_INCOMING) {
2026-07-29 08:29:29 +00:00
set.add(type.applicationId);
}
});
const applications = set(table[4]).fetchApplications(Array.from(set));
};
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const prototype = GameRelationshipManager.prototype;
prototype["_initialize"] = function _initialize() {
2026-08-24 06:08:38 +00:00
const subscription = dispatcherDefault.subscribe("POST_CONNECTION_OPEN", this.handlePostConnectionOpen);
2026-07-29 08:29:29 +00:00
};
prototype["_terminate"] = function _terminate() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.unsubscribe("POST_CONNECTION_OPEN", this.handlePostConnectionOpen);
2026-07-29 08:29:29 +00:00
};
prototype["destroy"] = function destroy() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.unsubscribe("POST_CONNECTION_OPEN", this.handlePostConnectionOpen);
2026-07-29 08:29:29 +00:00
};
const gameRelationshipManager = new GameRelationshipManager();
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/game_relationships/GameRelationshipManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default gameRelationshipManager;