mirror of
https://github.com/ceratic/project_vollidioten_website.git
synced 2026-05-14 00:16:47 +02:00
feat: add minecraftStats to player model and update related API endpoints
This commit is contained in:
25
types.ts
25
types.ts
@@ -7,6 +7,30 @@ export interface Item {
|
||||
nbtSummary?: string;
|
||||
}
|
||||
|
||||
export interface MinecraftStats {
|
||||
char: {
|
||||
health: number;
|
||||
maxHealth: number;
|
||||
foodLevel: number;
|
||||
xpLevel: number;
|
||||
position: {
|
||||
x: number;
|
||||
y: number;
|
||||
z: number;
|
||||
};
|
||||
};
|
||||
statistics: {
|
||||
general: { [key: string]: number };
|
||||
kills: { [key: string]: number };
|
||||
killed_by: { [key: string]: number };
|
||||
};
|
||||
advancements: Array<{
|
||||
id: string;
|
||||
title: string;
|
||||
}>;
|
||||
lastSync: number;
|
||||
}
|
||||
|
||||
export interface PlayerStats {
|
||||
playtimeHours: number;
|
||||
level: number;
|
||||
@@ -20,6 +44,7 @@ export interface Player {
|
||||
skinUrl?: string; // Placeholder in a real app
|
||||
inventory: (Item | null)[];
|
||||
stats: PlayerStats;
|
||||
minecraftStats?: MinecraftStats;
|
||||
storyMarkdown: string;
|
||||
tags: string[];
|
||||
isOnline: boolean;
|
||||
|
||||
Reference in New Issue
Block a user