ModernUO/Projects/UOContent/Network
Kamron Batman 3e8d548f38
feat: Add spawn position caching and spiral scan optimization (#2295)
### Summary

Adds spawn position caching and optimization for constrained spawners (e.g., those near houses, water, or blocked terrain).

### Key features:
- Sector-based bitmap cache (32 bytes per 16x16 sector) stores valid spawn positions
- Spiral scan progressively discovers positions from spawner center outward
- Automatic mode detects constrained spawners after 5+ non-transient failures
- Prevents mob spawning inside private houses (allows public AoS buildings)
- Deduplicates sector lookups for multi-bounds spawners (RegionSpawner)
- Cache invalidation on house placement/demolition
- Moves SpawnBounds to Spawner

### New spawner properties:
- SpawnPositionMode: Automatic (default), Enabled, Disabled, Abandoned
- MaxSpawnAttempts: Configurable attempts before optimization engages (default: 5)
2025-12-28 02:40:21 -08:00
..
Packets chore: Use var everywhere (#2294) 2025-12-27 16:47:28 -08:00
ContainerGridPacketHandler.cs fix: Fixes crashing due to bad packet assumptions. (#1829) 2024-06-07 18:08:07 -07:00
EntityPackets.cs feat: Add spawn position caching and spiral scan optimization (#2295) 2025-12-28 02:40:21 -08:00
FreeshardProtocol.cs fix: Fixes crashing due to bad packet assumptions. (#1829) 2024-06-07 18:08:07 -07:00
GameServer.cs feat: Moves network related events to UOContent using code generation (#1945) 2024-09-06 16:57:10 -07:00
GatewayServer.cs feat: Moves network related events to UOContent using code generation (#1945) 2024-09-06 16:57:10 -07:00
MapUO.cs chore: Use var everywhere (#2294) 2025-12-27 16:47:28 -08:00
NetworkCommands.cs fix: Adds command help, webpage, and fixes issues with other commands (#1669) 2024-02-10 00:19:19 -08:00
ProtocolExtensions.cs chore: Use var everywhere (#2294) 2025-12-27 16:47:28 -08:00
UOGateway.cs fix: Fixes stuck connections (#1708) 2024-04-03 08:14:41 -07:00