A rust framework for quickly implementing MMO server emulators
I'm still sketching out an actix-web and specs style abstraction for extracting information out of the context statically, but it's currently very straightforward to write and bind handlers by just directly grabbing references from the context. Ideally you'd be able to specify handler dependencies with just function parameters, but I'm struggling to make that work.
This may be another crate to publish if it turns out to be useful. #rust
Made an API for constructing handler dispatchers using an anymap to retrieve references to server state from a context. It supports multiple handlers per opcode and conditional guards to short-circuit handlers from running and perform state validation ala mangos' checks to ensure a connection is in a particular state. The use of a DI container context means handlers are fully decoupled from state and can theoretically be hot-reloaded, or using multiple dispatchers at runtime.