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

51 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 14387
// Function ID: 14388
// Name: GameRelationshipManager
2026-10-07 22:43:51 +00:00
// Dependencies: [7142, 1085, 1989, 584, 6658, 2]
2026-10-07 22:43:51 +00:00
// Module 14387 (GameRelationshipManager)
import DispatcherDefault from "Dispatcher" /* 584 */;
import Constants from "Constants" /* 1085 */;
import GameRelationshipStore from "GameRelationshipStore" /* 7142 */;
2026-10-02 13:37:24 +00:00
import LifecycleManager from "LifecycleManager" /* 1989 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let gameRelationships, set;
const RelationshipTypes = Constants.RelationshipTypes;
class GameRelationshipManager extends LifecycleManager {
constructor() {
2026-10-01 14:13:23 +00:00
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
applyArgumentsResult.handlePostConnectionOpen = function handlePostConnectionOpen() {
gameRelationships = gameRelationships.getGameRelationships();
2026-10-01 14:13:23 +00:00
set = new Set();
const values = gameRelationships.values();
const item = values.forEach((type) => {
if (type.type === constants.PENDING_INCOMING) {
set.add(type.applicationId);
}
});
2026-10-01 14:13:23 +00:00
const obj2 = set(closure_1[4]);
const applications = obj2.fetchApplications(Array.from(set));
};
return applyArgumentsResult;
}
2026-10-01 14:13:23 +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);
}
}
const prototype = GameRelationshipManager.prototype;
const gameRelationshipManager = new GameRelationshipManager();
const result = size.fileFinishedImporting("modules/game_relationships/GameRelationshipManager.tsx");
export default gameRelationshipManager;