mirror of
https://github.com/ceratic/project_vollidioten_website.git
synced 2026-05-14 00:16:47 +02:00
feat: add world map functionality and admin map management
- Added world map page with interactive marker display - Implemented admin map management for marker CRUD operations - Added map layers and markers seed data to database - Integrated new routes for map functionality - Updated database configuration for production environment - Added documentation page route - Enhanced package.json with required dependencies for map features
This commit is contained in:
41
types.ts
41
types.ts
@@ -113,4 +113,45 @@ export interface DiscordUser {
|
||||
discriminator: string;
|
||||
avatarUrl: string;
|
||||
linkedPlayerUuid?: string | null;
|
||||
isAdmin?: boolean;
|
||||
}
|
||||
|
||||
export interface MapMarker {
|
||||
id: string;
|
||||
name: string;
|
||||
type: 'city' | 'poi' | 'player_home' | 'waypoint';
|
||||
x_coord: number;
|
||||
z_coord: number;
|
||||
description: string;
|
||||
linked_entity_type?: string;
|
||||
linked_entity_id?: string;
|
||||
icon_type: string;
|
||||
color: string;
|
||||
is_public: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
coordinates?: {
|
||||
x: number;
|
||||
y: number;
|
||||
pixelX: number;
|
||||
pixelY: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface MapLayer {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
is_active: boolean;
|
||||
order_index: number;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface MapMetadata {
|
||||
width: number;
|
||||
height: number;
|
||||
offsetX: number;
|
||||
offsetZ: number;
|
||||
tileSize: number;
|
||||
lastUpdated?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user