How heavenlode/hlnc works
Core Architecture Components:
Network Core Layer
• NetworkRunner (Central coordinator)
• NetworkNode3D (Base networked object)
• NetworkProperty (Property synchronization)
• WorldRunner (Multiple world management)
Serialization Layer
• HLBuffer (Buffer management)
• HLBytes (Byte serialization)
• Custom Serializers
• DespawnSerializer
• NetworkPropertiesSerializer
• SpawnSerializer
• State Serializers
Utility Components
• NetworkTransform
• NetworkAnimationPlayer
• NetworkVisibility
• TickTimer
-on Systems
• Blastoff System
• Lazy Loading System
• Questing System
┌─────────────────────────────────────────────────┐
• Game Layer │
• ┬───────────────────────────────┘
• ↓
┌─────────────────────────────────────────────────┐
• NetworkRunner │
• (Tick Management & Network Coordination) │
• ┬─────────────────┬──────────────────┬───┘
• ↓ ↓ ↓
┌───────────────┐ ┌──────────────┐ ┌────────────────┐
• NetworkNode3D │ │Serialization │ │ Add-ons │
• System │ │ Layer │ │ System │
• ┬───────┘ └──────┬───────┘ └────────┬───────┘
• ↓ ↓ ↓
Data Flow Representation
• Tick-based synchronization flow
• Server-client communication
• Property synchronization paths
Detailed Component Breakdown
NetworkRunner
• Tick Management
• State Authority
• Input Authority
• World Management
Serialization Layer
• Buffer Management
• Byte Serialization
• Custom Serializers
NetworkNode3D
• Property Sync
• Network Identity
• Authority Management
Key Features to Highlight
• Tick-aligned system
• Single state authority (server)
• Input authority
• Data interpolation
• Interest management
• Multiple world support
Connection Points
• Integration with Godot engine
• UDP packet management
• Property change propagation
-on system integration points
Remember to:
• Detailed component relationships
• Clear data flow paths
• Security and performance considerations
This system design should provide a clear understanding of HLNC's architecture while maintaining the necessary technical depth for implementation and maintenance.