Files
DarkflameServer/dDashboardServer/routes/UgcLinks.h
Aaron Kimbrell 4f3983fb98 feat(dashboard): UGC lists paged with totals, prefix search and sorting; car and rocket assemblies
IUgcLookup::ListUgc pages either kind with the UGC search's matching, a state
and a sort, and counts the matches (MySQL and SQLite share the SQL). The UGC
server records each model's bricks and triangles (new ugc columns) so models
can be sorted by size. Cars and rockets are listed as assemblies, one per
combination of modules, with their build type, module names and how many
builds use them; filters for type, state, module and owner. Each assembly's
builds (with where they are) are paged, and a build's assembly can be looked
up for links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:31:12 -05:00

18 lines
686 B
C++

#pragma once
#include <map>
#include <vector>
#include "IUgcLookup.h"
#include "json.hpp"
// Finding players' creations and showing them where they are: the UGC search, and the UGC server's icons and models on
// the property and character pages (for whoever may view those pages)
namespace UgcLinks {
void RegisterRoutes();
// Web thread: where each of these creations is (by id): placed on properties, attached to mails, or in its creator's
// inventories (looked in only for those not placed or mailed, and for at most a few creators). [{type: property|mail|inventory, ...}]
std::map<LWOOBJID, nlohmann::json> Whereabouts(const std::vector<IUgcLookup::UgcEntry>& entries);
}