140 lines
7.4 KiB
C#
140 lines
7.4 KiB
C#
using Microsoft.AspNetCore.DataProtection.KeyManagement;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DeluxeBackend.Controllers.Api
|
|
{
|
|
[Route("api/config")]
|
|
[ApiController]
|
|
public class ConfigController : ControllerBase
|
|
{
|
|
[HttpGet("v1/amplitude")]
|
|
public IActionResult Amplitude()
|
|
{
|
|
return Ok(new
|
|
{
|
|
AmplitudeKey = "e1693a1003671058b6abc356c8ba8d59",
|
|
UseRudderStack = false,
|
|
RudderStackKey = "23NiJHIgu3koaGNCZIiuYvIQNCu",
|
|
UseStatSig = false,
|
|
StatSigKey = "client-SBZkOrjD3r1Cat3f3W8K6sBd11WKlXZXIlCWj6l4Aje",
|
|
StatSigEnvironment = 0
|
|
});
|
|
}
|
|
[HttpGet("v1/backtrace")]
|
|
public IActionResult Backtrace()
|
|
{
|
|
return Ok(new
|
|
{
|
|
ReportBudget = 0,
|
|
FilterType = 0,
|
|
SampleRate = 0.025,
|
|
LogLineCount = 50,
|
|
CaptureNativeCrashes = 1,
|
|
ANRThresholdMs = 0,
|
|
MessageCount = 1000,
|
|
MessageRegex = "^Cannot set the parent of the GameObject .* while its new parent|^\\\\u003E\\\\x2010x\\\\:\\\\x20|\\'LabelTheme\\' contains missing PaletteTheme reference on",
|
|
VersionRegex = ".*"
|
|
});
|
|
}
|
|
|
|
[HttpGet("v2")]
|
|
public IActionResult GetConfig()
|
|
{
|
|
return Ok(new
|
|
{
|
|
ShareBaseUrl = "https://127.0.0.1:5000{0}",
|
|
LevelProgressionMaps = new[]
|
|
{
|
|
new { Level = 1, RequiredXp = 2, GiftDropId = 1 },
|
|
new { Level = 2, RequiredXp = 3, GiftDropId = 881 },
|
|
new { Level = 3, RequiredXp = 4, GiftDropId = 19 },
|
|
new { Level = 4, RequiredXp = 6, GiftDropId = 2134 },
|
|
new { Level = 5, RequiredXp = 9, GiftDropId = 1063 },
|
|
new { Level = 6, RequiredXp = 13, GiftDropId = 1043 },
|
|
new { Level = 7, RequiredXp = 19, GiftDropId = 1287 },
|
|
new { Level = 8, RequiredXp = 28, GiftDropId = 1765 },
|
|
new { Level = 9, RequiredXp = 42, GiftDropId = 1328 },
|
|
new { Level = 10, RequiredXp = 63, GiftDropId = 1857 },
|
|
new { Level = 11, RequiredXp = 94, GiftDropId = 1359 },
|
|
new { Level = 12, RequiredXp = 141, GiftDropId = 1433 },
|
|
new { Level = 13, RequiredXp = 211, GiftDropId = 320 },
|
|
new { Level = 14, RequiredXp = 316, GiftDropId = 1373 },
|
|
new { Level = 15, RequiredXp = 474, GiftDropId = 1949 },
|
|
new { Level = 16, RequiredXp = 711, GiftDropId = 961 },
|
|
new { Level = 17, RequiredXp = 1066, GiftDropId = 934 },
|
|
new { Level = 18, RequiredXp = 1599, GiftDropId = 633 },
|
|
new { Level = 19, RequiredXp = 2398, GiftDropId = 1766 },
|
|
new { Level = 20, RequiredXp = 3597, GiftDropId = 523 },
|
|
new { Level = 21, RequiredXp = 5395, GiftDropId = 106 },
|
|
new { Level = 22, RequiredXp = 8092, GiftDropId = 1075 },
|
|
new { Level = 23, RequiredXp = 12138, GiftDropId = 352 },
|
|
new { Level = 24, RequiredXp = 18207, GiftDropId = 49 },
|
|
new { Level = 25, RequiredXp = 27310, GiftDropId = 879 },
|
|
new { Level = 26, RequiredXp = 40965, GiftDropId = 2115 },
|
|
new { Level = 27, RequiredXp = 61447, GiftDropId = 2167 },
|
|
new { Level = 28, RequiredXp = 92170, GiftDropId = 2246 },
|
|
new { Level = 29, RequiredXp = 138255, GiftDropId = 1895 },
|
|
new { Level = 30, RequiredXp = 207382, GiftDropId = 1584 },
|
|
new { Level = 31, RequiredXp = 311073, GiftDropId = 385 },
|
|
new { Level = 32, RequiredXp = 466609, GiftDropId = 2308 },
|
|
new { Level = 33, RequiredXp = 699913, GiftDropId = 1499 },
|
|
new { Level = 34, RequiredXp = 1049869, GiftDropId = 1410 },
|
|
new { Level = 35, RequiredXp = 1574803, GiftDropId = 373 },
|
|
new { Level = 36, RequiredXp = 2362204, GiftDropId = 254 },
|
|
new { Level = 37, RequiredXp = 3543306, GiftDropId = 1069 },
|
|
new { Level = 38, RequiredXp = 5314959, GiftDropId = 993 },
|
|
new { Level = 39, RequiredXp = 7972438, GiftDropId = 1887 },
|
|
new { Level = 40, RequiredXp = 11958657, GiftDropId = 985 },
|
|
new { Level = 41, RequiredXp = 17937986, GiftDropId = 2079 },
|
|
new { Level = 42, RequiredXp = 26906980, GiftDropId = 105 },
|
|
new { Level = 43, RequiredXp = 40360472, GiftDropId = 1363 },
|
|
new { Level = 44, RequiredXp = 60540708, GiftDropId = 1526 },
|
|
new { Level = 45, RequiredXp = 90811064, GiftDropId = 131 },
|
|
new { Level = 46, RequiredXp = 136216592, GiftDropId = 1376 },
|
|
new { Level = 47, RequiredXp = 204324896, GiftDropId = 834 },
|
|
new { Level = 48, RequiredXp = 306487360, GiftDropId = 816 },
|
|
new { Level = 49, RequiredXp = 459731040, GiftDropId = 138 },
|
|
new { Level = 50, RequiredXp = 689596544, GiftDropId = 10 }
|
|
},
|
|
DailyObjectives = new[]
|
|
{
|
|
new[] { new { type = 101, score = 1, xp = 10 }, new { type = 1000, score = 1, xp = 10 }, new { type = 802, score = 2, xp = 10 } },
|
|
new[] { new { type = 26, score = 1, xp = 10 }, new { type = 1021, score = 2, xp = 10 }, new { type = 2004, score = 1, xp = 10 } },
|
|
new[] { new { type = 3001, score = 1, xp = 10 }, new { type = 102, score = 1, xp = 10 }, new { type = 601, score = 2, xp = 10 } },
|
|
new[] { new { type = 14, score = 2, xp = 10 }, new { type = 1000, score = 1, xp = 10 }, new { type = 14, score = 2, xp = 10 } },
|
|
new[] { new { type = 801, score = 1, xp = 10 }, new { type = 2001, score = 1, xp = 10 }, new { type = 21, score = 1, xp = 10 } },
|
|
new[] { new { type = 603, score = 1, xp = 10 }, new { type = 1002, score = 1, xp = 10 }, new { type = 1041, score = 1, xp = 10 } },
|
|
new[] { new { type = 700, score = 1, xp = 10 }, new { type = 4001, score = 1, xp = 10 }, new { type = 602, score = 2, xp = 10 } }
|
|
},
|
|
ServerMaintenance = new { StartsInMinutes = 0 },
|
|
AutoMicMutingConfig = new
|
|
{
|
|
MicSpamVolumeThreshold = 1.125,
|
|
MicVolumeSampleInterval = 0.25,
|
|
MicVolumeSampleRollingWindowLength = 7,
|
|
MicSpamSamplePercentageForWarning = 0.8,
|
|
MicSpamSamplePercentageForWarningToEnd = 0.2,
|
|
MicSpamSamplePercentageForForceMute = 0.8,
|
|
MicSpamSamplePercentageForForceMuteToEnd = 0.2,
|
|
MicSpamWarningStateVolumeMultiplier = 0.25
|
|
},
|
|
StorefrontConfig = new { MinPlayerLevelForGifting = 15 },
|
|
RoomKeyConfig = new { MaxKeysPerRoom = 10 },
|
|
RoomCurrencyConfig = new { AwardCurrencyCooldownSeconds = 10 }
|
|
});
|
|
}
|
|
|
|
[HttpGet("v1/azurespeech")]
|
|
public IActionResult Azurespeech()
|
|
{
|
|
return Ok(new
|
|
{
|
|
Key = "dce8de5b297747d9b5bddcc7f19e8c5b",
|
|
Region= "eastus",
|
|
Enabled=true
|
|
});
|
|
}
|
|
}
|
|
}
|