Split the person card into overview, clothes, carry and now tabs.
Today's history is a paged HTTP log on the worker, not on the card or in people.json. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,6 +12,16 @@ internal enum PersonLookupError
|
||||
|
||||
internal sealed record PersonCardResult(PersonCardResponse? Card, PersonLookupError Error);
|
||||
|
||||
internal sealed record PersonLogResult(PersonLogResponse? Page, PersonLookupError Error);
|
||||
|
||||
internal sealed record PersonLogResponse(
|
||||
int Total,
|
||||
int Page,
|
||||
int PageSize,
|
||||
IReadOnlyList<PersonLogEntryResponse> Entries);
|
||||
|
||||
internal sealed record PersonLogEntryResponse(DateTime Time, string Type, string Label, string? ThingDef);
|
||||
|
||||
internal sealed record PeopleListResponse(
|
||||
int Total,
|
||||
int Page,
|
||||
@@ -65,14 +75,18 @@ internal sealed record PersonCardResponse(
|
||||
IReadOnlyList<WornItemResponse> Worn,
|
||||
IReadOnlyList<CarriedItemResponse> Carried,
|
||||
float CarryMass,
|
||||
float CarryCapacity);
|
||||
float CarryCapacity,
|
||||
bool HasLocker,
|
||||
int HomeCount);
|
||||
|
||||
internal sealed record WornItemResponse(
|
||||
string DefName,
|
||||
string Label,
|
||||
string? Color,
|
||||
string? ColorLabel,
|
||||
IReadOnlyList<DefLabelResponse> Layers);
|
||||
IReadOnlyList<DefLabelResponse> Layers,
|
||||
float Condition,
|
||||
string? ConditionLabel);
|
||||
|
||||
internal sealed record CarriedItemResponse(
|
||||
string DefName,
|
||||
|
||||
Reference in New Issue
Block a user