decord/beta/source/modules/game_server/GameServerExperiment.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

23 lines
1.2 KiB
TypeScript

// Module ID: 4747
// Function ID: 4748
// Name: GameServerExperiment
// Dependencies: [4748, 2]
// Exports: getGameServerEnabled, useGameServerEnabled
// Module 4747 (GameServerExperiment)
import createExperiment from "module_4748" /* 4748 */;
import size from "module_2" /* 2 */;
const obj = { kind: "guild", id: "2025-08_portkey_enabled", label: "GameServer Enabled", defaultConfig: { enabled: false }, treatments: null };
const items = [{ id: 1, label: "Enable GameServer", config: { enabled: true } }];
obj.treatments = items;
const experiment = createExperiment.createExperiment(obj);
const result = size.fileFinishedImporting("modules/game_server/GameServerExperiment.tsx");
export const GameServerExperiment = experiment;
export const getGameServerEnabled = function getGameServerEnabled(id, maybeGetGameServerHostingGuildEligiblePopoutDCF) {
return experiment.getCurrentConfig({ guildId: id, location: maybeGetGameServerHostingGuildEligiblePopoutDCF }, { autoTrackExposure: false }).enabled;
};
export const useGameServerEnabled = function useGameServerEnabled(guildId, GuildPowerupsBoostCount) {
return experiment.useExperiment({ guildId, location: GuildPowerupsBoostCount }, { autoTrackExposure: false }).enabled;
};