diff --git a/routes/API/Challenge.cs b/routes/API/Challenge.cs new file mode 100644 index 0000000..7940a35 --- /dev/null +++ b/routes/API/Challenge.cs @@ -0,0 +1,31 @@ +namespace Stella.Routes.API +{ + public class Challenge + { + [ServerAPI.GET("/api/challenge/v2/getCurrent")] + [ServerAPI.UseAuthorization] + public dynamic ReturnGetCurrentChallenges() + { + return new + { + ChallengeMapId = 0, + StartAt = "2022-12-27T21:27:38.188Z", + EndAt = "2028-12-27T21:27:38.188Z", + ServerTime = DateTime.UtcNow, + Challenges = Array.Empty(), + Gift = new + { + EquipmentModificationGuid = "bc4254be-60e0-4cc5-a233-6a0bd4137118", + UnlockedLevel = 0, + Favorited = true, + GiftDropId = 1, + AvatarItemDesc = "", + Xp = 2, + Level = 0, + EquipmentPrefabName = "[PaintballGun]" + }, + ChallengeThemeString = "PaintballGun" + }; + } + } +} \ No newline at end of file diff --git a/routes/API/Checklist.cs b/routes/API/Checklist.cs new file mode 100644 index 0000000..2b21e80 --- /dev/null +++ b/routes/API/Checklist.cs @@ -0,0 +1,11 @@ +namespace Stella.Routes.API +{ + public class GetCurrentChecklist + { + [ServerAPI.GET("/api/checklist/v1/current")] + public List ReturnGetCurrentChecklist() + { + return []; + } + } +} \ No newline at end of file diff --git a/routes/API/CommunityBoard.cs b/routes/API/CommunityBoard.cs new file mode 100644 index 0000000..9af1bb2 --- /dev/null +++ b/routes/API/CommunityBoard.cs @@ -0,0 +1,34 @@ +using Stella.Models; + +namespace Stella.Routes.API +{ + public class GetCommunityBoard + { + [ServerAPI.GET("/api/communityboard/v1/current")] + [ServerAPI.UseAuthorization] + public dynamic ReturnGetCommunityBoard() + { + return new CommunityBoardDTO + { + CurrentAnnouncement = new CommunityBoardAnnouncementDTO + { + Message = "Welcome to Stella!!!!!11!!!1!1", + MoreInfoUrl = "" + }, + FeaturedPlayer = new CommunityBoardFeaturedPlayerData + { + Id = 1, + TitleOverride = "bxt", + UrlOverride = "" + }, + FeaturedRoomGroup = new FeaturedRoomGroupDTO + { + FeaturedRooms = [], + Name = "stella" + }, + InstagramImages = [], + Videos = [] + }; + } + } +} \ No newline at end of file diff --git a/routes/API/Config.cs b/routes/API/Config.cs new file mode 100644 index 0000000..6f3e080 --- /dev/null +++ b/routes/API/Config.cs @@ -0,0 +1,161 @@ +using Stella.Models; + +namespace Stella.Routes.API +{ + public class Config + { + [ServerAPI.GET("/api/config/v1/amplitude")] + public dynamic Amplitude() + { + return new AmplitudeConfig + { + AmplitudeKey = "98b7a8604b19f3c703ddf09d3427fd0a" + }; + } + + [ServerAPI.GET("/api/config/v2")] + [ServerAPI.UseAuthorization] + public dynamic ConfigV2() + { + var config = new ConfigDTO + { + ShareBaseUrl = "https://stellaonline.org/", + LevelProgressionMaps = [], + DailyObjectives = [ + [ + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + } + ], + [ + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + } + ], + [ + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + } + ], + [ + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + } + ], + [ + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + } + ], + [ + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + } + ], + [ + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + }, + new OldObjectiveDTO + { + Type = ObjectiveType.StuntRunnerWins, + Score = 1, + } + ] + ], + AutoMicMutingConfig = new AutoMicMutingConfigDTO + { + MicSpamVolumeThreshold = 0, + MicVolumeSampleInterval = 0, + MicVolumeSampleRollingWindowLength = 0, + MicSpamSamplePercentageForWarning = 0, + MicSpamSamplePercentageForWarningToEnd = 0, + MicSpamSamplePercentageForForceMute = 0, + MicSpamSamplePercentageForForceMuteToEnd = 0, + MicSpamWarningStateVolumeMultiplier = 0 + }, + }; + + return config; + } + } +} diff --git a/routes/API/Consumables.cs b/routes/API/Consumables.cs new file mode 100644 index 0000000..462d767 --- /dev/null +++ b/routes/API/Consumables.cs @@ -0,0 +1,11 @@ +namespace Stella.Routes.API +{ + public class Consumables + { + [ServerAPI.GET("/api/consumables/v1/getUnlocked")] + public List ReturnGetUnlockedConsumables() + { + return []; + } + } +} \ No newline at end of file