Complete documentation for all 44 database handlers with centralized performance considerations
This commit is contained in:
1 parent
69aa91d403
commit
4f60b228d5
45 files changed
+11599
No files matched your search
+42
@@ -0,0 +1,42 @@
|
||||
# dbHeightMapHandler Documentation
|
||||
|
||||
## Overview
|
||||
This document describes the database relationships and interactions for the `dbHeightMapHandler` class. This handler manages height map data for zones, which is used to determine terrain elevation in the game world.
|
||||
|
||||
## Handler Class
|
||||
**File:** `src/engine/db/handlers/dbHeightMapHandler.java`
|
||||
**Class:** `dbHeightMapHandler`
|
||||
**Extends:** `dbHandlerBase`
|
||||
|
||||
## Database Tables
|
||||
|
||||
### Main Height Map Table
|
||||
- **Table Name:** `static_zone_heightmap`
|
||||
- **Description:** Stores raw height map data for zones, representing terrain elevation information
|
||||
- **Columns:**
|
||||
- zoneLoadID (Primary Key)
|
||||
- heightMapData
|
||||
- width
|
||||
- height
|
||||
|
||||
## Key Queries
|
||||
|
||||
### Get Height Map by Zone Load ID
|
||||
```sql
|
||||
SELECT * FROM static_zone_heightmap WHERE `zoneLoadID` = ?
|
||||
```
|
||||
**File:** `dbHeightMapHandler.java`, Line ~25
|
||||
|
||||
## Relationships
|
||||
|
||||
1. **Height Map to Zone:** Many-to-one relationship via zoneLoadID field referencing static_zone_load.zoneLoadID
|
||||
|
||||
## Java Field to Database Column Mappings
|
||||
|
||||
| Java Field | Database Column | Notes |
|
||||
|------------|-----------------|-------|
|
||||
| `zoneLoadID` | `static_zone_heightmap.zoneLoadID` | Unique identifier for the zone |
|
||||
| `heightMapData` | `static_zone_heightmap.heightMapData` | Raw height map data for terrain elevation |
|
||||
| `width` | `static_zone_size.width` | Width dimension of the zone |
|
||||
| `height` | `static_zone_size.height` | Height dimension of the zone |
|
||||
| `other fields...` | Various columns | Other properties related to height maps |
|
||||
Reference in new issue
Block a user