decord/source/modules/game_server/GameServerExperiment.tsx

21 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 4100
// Function ID: 4101
// Name: experiment
// Dependencies: [4101, 2]
2026-07-20 16:05:17 +00:00
// Exports: getGameServerEnabled, useGameServerEnabled
2026-07-29 08:29:29 +00:00
// Module 4100 (experiment)
2026-07-23 10:11:24 +00:00
import createExperiment from "createExperiment";
2026-07-29 08:29:29 +00:00
const items = [{ id: 1, label: "Enable GameServer", config: { enabled: true } }];
const experiment = createExperiment.createExperiment({ kind: "guild", id: "2025-08_portkey_enabled", label: "GameServer Enabled", defaultConfig: { enabled: false }, treatments: items });
2026-07-30 10:14:41 +00:00
const result = require("set").fileFinishedImporting("modules/game_server/GameServerExperiment.tsx");
2026-07-20 16:05:17 +00:00
export const GameServerExperiment = experiment;
2026-07-29 08:29:29 +00:00
export const getGameServerEnabled = function getGameServerEnabled(c0, maybeGetGameServerHostingGuildEligiblePopoutDCF) {
return experiment.getCurrentConfig({ guildId: c0, location: maybeGetGameServerHostingGuildEligiblePopoutDCF }, { autoTrackExposure: false }).enabled;
2026-07-20 16:05:17 +00:00
};
export const useGameServerEnabled = function useGameServerEnabled(guildId, GuildPowerupsBoostCount) {
return experiment.useExperiment({ guildId, location: GuildPowerupsBoostCount }, { autoTrackExposure: false }).enabled;
};