Initial commit
This commit is contained in:
commit
b0318f5602
26 changed files with 3247 additions and 0 deletions
24
Entities/ScoreSaberUser.cs
Normal file
24
Entities/ScoreSaberUser.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using Newtonsoft.Json;
|
||||
using ProjectMakoto.Database;
|
||||
using ProjectMakoto.Enums;
|
||||
|
||||
namespace ProjectMakoto.Plugins.ScoreSaber.Entities;
|
||||
|
||||
[TableName("users")]
|
||||
public sealed class ScoreSaberUser : PluginDatabaseTable
|
||||
{
|
||||
public ScoreSaberUser(BasePlugin plugin, ulong identifierValue) : base(plugin, identifierValue)
|
||||
{
|
||||
this.Id = identifierValue;
|
||||
}
|
||||
|
||||
[ColumnName("UserId"), ColumnType(ColumnTypes.BigInt), Primary]
|
||||
internal ulong Id { get; init; }
|
||||
|
||||
[ColumnName("ScoreSaberId"), ColumnType(ColumnTypes.BigInt), Default("0")]
|
||||
public ulong ScoreSaberId
|
||||
{
|
||||
get => this.GetValue<ulong>(this.Id, "ScoreSaberId");
|
||||
set => this.SetValue(this.Id, "ScoreSaberId", value);
|
||||
}
|
||||
}
|
||||
88
Entities/Translations.cs
Normal file
88
Entities/Translations.cs
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
// Project Makoto
|
||||
// Copyright (C) 2023 Fortunevale
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY
|
||||
namespace ProjectMakoto.Plugins.ScoreSaber.Entities;
|
||||
#pragma warning disable CS8981
|
||||
#pragma warning disable CS8618
|
||||
#pragma warning disable IDE1006
|
||||
public class Translations : ITranslations
|
||||
{
|
||||
public Dictionary<string, int> Progress = new();
|
||||
public CommandTranslation[] CommandList { get; set; }
|
||||
#region AutoGenerated
|
||||
public commands Commands;
|
||||
public sealed class commands
|
||||
{
|
||||
public scoreSaber ScoreSaber;
|
||||
public sealed class scoreSaber
|
||||
{
|
||||
public unlink Unlink;
|
||||
public sealed class unlink
|
||||
{
|
||||
public SingleTranslationKey NoLink;
|
||||
public SingleTranslationKey Unlinked;
|
||||
}
|
||||
public search Search;
|
||||
public sealed class search
|
||||
{
|
||||
public SingleTranslationKey NoSearchResult;
|
||||
public SingleTranslationKey FoundCount;
|
||||
public SingleTranslationKey SelectPlayer;
|
||||
public SingleTranslationKey Searching;
|
||||
public SingleTranslationKey SelectedCountry;
|
||||
public SingleTranslationKey SelectCountry;
|
||||
public SingleTranslationKey SelectContinent;
|
||||
public SingleTranslationKey NextStep;
|
||||
public SingleTranslationKey StartSearch;
|
||||
public SingleTranslationKey SelectCountryDropdown;
|
||||
public SingleTranslationKey SelectContinentDropdown;
|
||||
public SingleTranslationKey NoCountryFilter;
|
||||
}
|
||||
public profile Profile;
|
||||
public sealed class profile
|
||||
{
|
||||
public SingleTranslationKey InvalidId;
|
||||
public SingleTranslationKey UserDoesNotExist;
|
||||
public SingleTranslationKey Placement;
|
||||
public SingleTranslationKey GraphToday;
|
||||
public SingleTranslationKey GraphDays;
|
||||
public SingleTranslationKey ReplaysWatched;
|
||||
public SingleTranslationKey TotalScore;
|
||||
public SingleTranslationKey TotalPlayCount;
|
||||
public SingleTranslationKey AverageRankedAccuracy;
|
||||
public SingleTranslationKey TotalRankedScore;
|
||||
public SingleTranslationKey RankedPlayCount;
|
||||
public SingleTranslationKey MapLeaderboard;
|
||||
public SingleTranslationKey RecentScores;
|
||||
public SingleTranslationKey TopScores;
|
||||
public SingleTranslationKey InactiveUser;
|
||||
public MultiTranslationKey LinkSuccessful;
|
||||
public SingleTranslationKey OpenInBrowser;
|
||||
public SingleTranslationKey LinkProfileToAccount;
|
||||
public SingleTranslationKey ShowRecentScores;
|
||||
public SingleTranslationKey ShowTopScores;
|
||||
public SingleTranslationKey ShowProfile;
|
||||
public SingleTranslationKey LoadingPlayer;
|
||||
public SingleTranslationKey NoProfile;
|
||||
public SingleTranslationKey NoUser;
|
||||
public SingleTranslationKey InvalidInput;
|
||||
}
|
||||
public mapLeaderboard MapLeaderboard;
|
||||
public sealed class mapLeaderboard
|
||||
{
|
||||
public SingleTranslationKey Profile;
|
||||
public SingleTranslationKey PageNotExist;
|
||||
public SingleTranslationKey ScoreboardNotExist;
|
||||
public SingleTranslationKey LoadingScoreboard;
|
||||
}
|
||||
public SingleTranslationKey ForbiddenError;
|
||||
public SingleTranslationKey InternalServerError;
|
||||
}
|
||||
}
|
||||
#endregion AutoGenerated
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue