mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
Brighter icons: a world light, a fill from the camera, a highlight, exposure and contrast; with the defaults the icons' mean luminance matches the game's own model icons (118 against 120 on a scratch set). Every icon parameter is listed once (UgcIconParams: key, setting, range, default); the settings, the dashboard's settings entries and the icon editor come from that list. Presets per kind (player models, each car or rocket build type from ModularBuildComponent) and overrides per model or module combination are in ugc_icon_settings. Saved models wait ugc_debounce_seconds (sharedconfig) after the owner's last save before they're made (ugc.process_after); a client asking for one, the owner leaving the world or a reset ends the wait. Cars and rockets: one icon per combination of modules (sorted LOTs), shared by every build of it; builds of a combination made already are marked made right away, the client's per-blueprint downloads serve the shared files. The dashboard can delete one item's files, purge by filter or all, preview icons with any values on the UGC server (/admin routes, master password), save presets and overrides, and draw a kind's icons again (icons only). Migrations dlu/mysql/86 and dlu/sqlite/69. Not done yet: the dashboard editor's lighting controls in the page script (routes are there), docs for it, the empty-model state, /ugc?item= links, the shared fetch helper; the storage size and property loading bugs are next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
306 lines
7.0 KiB
C++
306 lines
7.0 KiB
C++
#include "TestSQLDatabase.h"
|
|
|
|
void TestSQLDatabase::Connect() {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::Destroy(std::string source) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::Commit() {
|
|
|
|
}
|
|
|
|
bool TestSQLDatabase::GetAutoCommit() {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::SetAutoCommit(bool value) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::ExecuteCustomQuery(const std::string_view query) {
|
|
|
|
}
|
|
|
|
std::optional<IServers::MasterInfo> TestSQLDatabase::GetMasterInfo() {
|
|
return {};
|
|
}
|
|
|
|
std::vector<std::string> TestSQLDatabase::GetApprovedCharacterNames() {
|
|
return {};
|
|
}
|
|
|
|
std::vector<FriendData> TestSQLDatabase::GetFriendsList(LWOOBJID charID) {
|
|
return {};
|
|
}
|
|
|
|
std::optional<IFriends::BestFriendStatus> TestSQLDatabase::GetBestFriendStatus(const LWOOBJID playerCharacterId, const LWOOBJID friendCharacterId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::SetBestFriendStatus(const LWOOBJID playerAccountId, const LWOOBJID friendAccountId, const uint32_t bestFriendStatus) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::AddFriend(const LWOOBJID playerAccountId, const LWOOBJID friendAccountId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::RemoveFriend(const LWOOBJID playerAccountId, const LWOOBJID friendAccountId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateActivityLog(const LWOOBJID characterId, const eActivityType activityType, const LWOMAPID mapId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::DeleteUgcModelData(const LWOOBJID& modelId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateUgcModelData(const LWOOBJID& modelId, std::stringstream& lxfml, const int64_t processAfter) {
|
|
|
|
}
|
|
|
|
std::vector<IUgc::Model> TestSQLDatabase::GetAllUgcModels() {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::CreateMigrationHistoryTable() {
|
|
|
|
}
|
|
|
|
bool TestSQLDatabase::IsMigrationRun(const std::string_view str) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::InsertMigration(const std::string_view str) {
|
|
|
|
}
|
|
|
|
std::optional<ICharInfo::Info> TestSQLDatabase::GetCharacterInfo(const LWOOBJID charId) {
|
|
return {};
|
|
}
|
|
|
|
std::optional<ICharInfo::Info> TestSQLDatabase::GetCharacterInfo(const std::string_view charId) {
|
|
return {};
|
|
}
|
|
|
|
std::string TestSQLDatabase::GetCharacterXml(const LWOOBJID accountId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateCharacterXml(const LWOOBJID characterId, const std::string_view lxfml) {
|
|
|
|
}
|
|
|
|
std::optional<IAccounts::Info> TestSQLDatabase::GetAccountInfo(const std::string_view username) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::InsertNewCharacter(const ICharInfo::Info info) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertCharacterXml(const LWOOBJID accountId, const std::string_view lxfml) {
|
|
|
|
}
|
|
|
|
std::vector<LWOOBJID> TestSQLDatabase::GetAccountCharacterIds(LWOOBJID accountId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::DeleteCharacter(const LWOOBJID characterId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::SetCharacterName(const LWOOBJID characterId, const std::string_view name) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::SetPendingCharacterName(const LWOOBJID characterId, const std::string_view name) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateLastLoggedInCharacter(const LWOOBJID characterId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::SetPetNameModerationStatus(const LWOOBJID& petId, const IPetNames::Info& info) {
|
|
|
|
}
|
|
|
|
std::optional<IPetNames::Info> TestSQLDatabase::GetPetNameInfo(const LWOOBJID& petId) {
|
|
return {};
|
|
}
|
|
|
|
std::optional<IProperty::Info> TestSQLDatabase::GetPropertyInfo(const LWOMAPID mapId, const LWOCLONEID cloneId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::UpdatePropertyModerationInfo(const IProperty::Info& info) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdatePropertyDetails(const IProperty::Info& info) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateLastSave(const IProperty::Info& info) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertNewProperty(const IProperty::Info& info, const uint32_t templateId, const LWOZONEID& zoneId) {
|
|
|
|
}
|
|
|
|
std::vector<IPropertyContents::Model> TestSQLDatabase::GetPropertyModels(const LWOOBJID& propertyId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::RemoveUnreferencedUgcModels() {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertNewPropertyModel(const LWOOBJID& propertyId, const IPropertyContents::Model& model, const std::string_view name) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateModel(const LWOOBJID& modelID, const NiPoint3& position, const NiQuaternion& rotation, const std::array<std::pair<LWOOBJID, std::string>, 5>& behaviors) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::RemoveModel(const LWOOBJID& modelId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdatePerformanceCost(const LWOZONEID& zoneId, const float performanceCost) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertNewBugReport(const IBugReports::Info& info) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertCheatDetection(const IPlayerCheatDetections::Info& info) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertNewMail(const MailInfo& mail) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertNewUgcModel(std::stringstream& sd0Data, const uint64_t blueprintId, const uint32_t accountId, const LWOOBJID characterId, const int64_t processAfter) {
|
|
|
|
}
|
|
|
|
std::vector<MailInfo> TestSQLDatabase::GetMailForPlayer(const LWOOBJID characterId, const uint32_t numberOfMail) {
|
|
return {};
|
|
}
|
|
|
|
std::optional<MailInfo> TestSQLDatabase::GetMail(const uint64_t mailId) {
|
|
return {};
|
|
}
|
|
|
|
uint32_t TestSQLDatabase::GetUnreadMailCount(const LWOOBJID characterId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::MarkMailRead(const uint64_t mailId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::DeleteMail(const uint64_t mailId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::ClaimMailItem(const uint64_t mailId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertSlashCommandUsage(const LWOOBJID characterId, const std::string_view command) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateAccountUnmuteTime(const uint32_t accountId, const uint64_t timeToUnmute) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateAccountBan(const uint32_t accountId, const bool banned) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateAccountPassword(const uint32_t accountId, const std::string_view bcryptpassword) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::InsertNewAccount(const std::string_view username, const std::string_view bcryptpassword, const eGameMasterLevel gmLevel) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::SetMasterInfo(const IServers::MasterInfo& info) {
|
|
|
|
}
|
|
|
|
std::optional<uint64_t> TestSQLDatabase::GetCurrentPersistentId() {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::InsertDefaultPersistentId() {
|
|
|
|
}
|
|
|
|
std::optional<uint32_t> TestSQLDatabase::GetDonationTotal(const uint32_t activityId) {
|
|
return {};
|
|
}
|
|
|
|
std::optional<bool> TestSQLDatabase::IsPlaykeyActive(const int32_t playkeyId) {
|
|
return {};
|
|
}
|
|
|
|
std::vector<IUgc::Model> TestSQLDatabase::GetUgcModels(const LWOOBJID& propertyId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::AddIgnore(const LWOOBJID playerId, const LWOOBJID ignoredPlayerId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::RemoveIgnore(const LWOOBJID playerId, const LWOOBJID ignoredPlayerId) {
|
|
|
|
}
|
|
|
|
std::vector<IIgnoreList::Info> TestSQLDatabase::GetIgnoreList(const LWOOBJID playerId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::InsertRewardCode(const uint32_t account_id, const uint32_t reward_code) {
|
|
|
|
}
|
|
|
|
std::vector<uint32_t> TestSQLDatabase::GetRewardCodesByAccountID(const uint32_t account_id) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::AddBehavior(const IBehaviors::Info& info) {
|
|
|
|
}
|
|
|
|
std::string TestSQLDatabase::GetBehavior(const LWOOBJID behaviorId) {
|
|
return {};
|
|
}
|
|
|
|
void TestSQLDatabase::RemoveBehavior(const LWOOBJID behaviorId) {
|
|
|
|
}
|
|
|
|
void TestSQLDatabase::UpdateAccountGmLevel(const uint32_t accountId, const eGameMasterLevel gmLevel) {
|
|
|
|
}
|
|
|
|
IObjectIdTracker::Range TestSQLDatabase::GetPersistentIdRange() {
|
|
return {};
|
|
}
|