decord/alpha/source/modules/game_relationships/GameRelationshipManager.tsx

51 lines
1.8 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 15135
// Function ID: 15136
// Name: GameRelationshipManager
2026-10-12 06:59:38 +00:00
// Dependencies: [7347, 1085, 2002, 584, 6853, 2]
2026-07-23 10:11:24 +00:00
2026-10-13 12:43:34 +00:00
// Module 15135 (GameRelationshipManager)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import Constants from "Constants" /* 1085 */;
2026-10-12 06:59:38 +00:00
import GameRelationshipStore from "GameRelationshipStore" /* 7347 */;
2026-10-09 10:00:15 +00:00
import LifecycleManager from "LifecycleManager" /* 2002 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
let gameRelationships, set;
const RelationshipTypes = Constants.RelationshipTypes;
class GameRelationshipManager extends LifecycleManager {
2026-07-29 08:29:29 +00:00
constructor() {
2026-10-03 08:58:59 +00:00
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
2026-07-29 08:29:29 +00:00
applyArgumentsResult.handlePostConnectionOpen = function handlePostConnectionOpen() {
gameRelationships = gameRelationships.getGameRelationships();
2026-10-03 08:58:59 +00:00
set = new Set();
2026-07-29 08:29:29 +00:00
const values = gameRelationships.values();
const item = values.forEach((type) => {
if (type.type === constants.PENDING_INCOMING) {
2026-07-29 08:29:29 +00:00
set.add(type.applicationId);
}
});
2026-10-03 08:58:59 +00:00
const obj2 = set(closure_1[4]);
const applications = obj2.fetchApplications(Array.from(set));
2026-07-29 08:29:29 +00:00
};
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
_initialize() {
const obj = DispatcherDefault;
const subscription = obj.subscribe("POST_CONNECTION_OPEN", this.handlePostConnectionOpen);
}
_terminate() {
const obj = DispatcherDefault;
obj.unsubscribe("POST_CONNECTION_OPEN", this.handlePostConnectionOpen);
}
destroy() {
const obj = DispatcherDefault;
obj.unsubscribe("POST_CONNECTION_OPEN", this.handlePostConnectionOpen);
}
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = GameRelationshipManager.prototype;
const gameRelationshipManager = new GameRelationshipManager();
const result = size.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;