How samwhosung/benilla works
benilla is a complete WoW 1.12.1 client: a player supplies game data and credentials, connects to a compatible server, enters the world, and plays through the stock interface or addons. Its main runtime path joins protocol networking and ECS state to player control, targeting, quests, and world presentation. Separate subsystems load legacy assets, render terrain and models, and provide audio. The README documents broad capabilities; sampled source clarifies selected runtime relationships, so unsampled subsystem links are limited to documented claims.
Main entry points: lib.rs Bevy asset integration · net.rs Network-to-ECS bridge · controller.rs Avatar and camera · click.rs Target and click routing
Components 20
Session and networking
- Client startup
crates/benilla/src/main.rs - Login and realm flow
crates/benilla-app/src/login/mod.rs - Network-to-ECS bridge
crates/benilla-app/src/net.rs - Auth and world protocol
crates/benilla-protocol/src/auth.rs
Gameplay and control
- Avatar and camera
crates/benilla-app/src/player/controller.rs - Target and click routing
crates/benilla-app/src/target/click.rs - Quest interaction
crates/benilla-app/src/ui_quest/mod.rs - Entity presentation
crates/benilla-app/src/entities.rs - Creature animation
crates/benilla-app/src/creature_anim.rs
World presentation
- World rendering
crates/benilla-world/src/liquid/query.rs - Bevy asset integration
crates/benilla-assets/src/lib.rs
Game content
- M2 model reader
crates/benilla-m2/src/lib.rs - WMO reader
crates/benilla-wmo/src/lib.rs - DBC reader
crates/benilla-dbc/src/lib.rs - MPQ archive reader
crates/benilla-mpq/src/lib.rs
Interface and audio
- FrameXML and addons
crates/benilla-ui/src/loader/mod.rs - Audio system
crates/benilla-app/src/sound/mod.rs
Other components
- Player
- Game install
- 1.12.1 server
Connections 26
- Player → Client startup: starts client
README.md - Game install → Bevy asset integration: provides assets
README.md - Game install → MPQ archive reader: provides archives
README.md - Game install → FrameXML and addons: provides FrameXML
README.md - Client startup → Login and realm flow: opens session flow
- Player → Login and realm flow: enters credentials
README.md - Login and realm flow → Auth and world protocol: authenticates
README.md - Auth and world protocol → 1.12.1 server: connects protocol
README.md - 1.12.1 server → Network-to-ECS bridge: streams session events
crates/benilla-app/src/net.rs - Network-to-ECS bridge → Entity presentation: updates ECS
crates/benilla-app/src/net.rs - Player → Avatar and camera: provides input
crates/benilla-app/src/player/controller.rs - Avatar and camera → Network-to-ECS bridge: sends movement
crates/benilla-app/src/player/controller.rs - Avatar and camera → Target and click routing: routes world actions
crates/benilla-app/src/player/controller.rs - Target and click routing → Network-to-ECS bridge: sends game commands
crates/benilla-app/src/target/click.rs - Target and click routing → Quest interaction: opens quest interactions
crates/benilla-app/src/target/click.rs - Quest interaction → Network-to-ECS bridge: sends quest intents
crates/benilla-app/src/ui_quest/mod.rs - Network-to-ECS bridge → Avatar and camera: supplies server state
crates/benilla-app/src/net.rs - Entity presentation → Creature animation: animates units
crates/benilla-app/src/creature_anim.rs - Bevy asset integration → M2 model reader: loads model data
README.md - Bevy asset integration → WMO reader: loads building data
README.md - Bevy asset integration → DBC reader: loads game tables
README.md - Bevy asset integration → World rendering: feeds world rendering
README.md - World rendering → Avatar and camera: provides world context
- FrameXML and addons → Player: presents game UI
README.md - Audio system → Player: plays game audio
README.md - MPQ archive reader → Bevy asset integration: reads asset chain