decord/source/modules/game_relationships/GameRelationshipManager.tsx

44 lines
1.7 KiB
TypeScript
Raw Normal View History

// Module ID: 14548
// Function ID: 14549
2026-07-29 08:29:29 +00:00
// Name: _initialize
// Dependencies: [7658, 1074, 1898, 573, 7163, 2]
2026-07-23 10:11:24 +00:00
// Module 14548 (_initialize)
import dispatcherDefault from "dispatcher" /* 573 */;
import initializeDefault from "initialize" /* 1898 */;
import closure_2 from "recountRelationshipTypes" /* 7658 */;
import { RelationshipTypes } from "ME" /* 1074 */;
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;