Closed PabloMansanet closed 3 years ago
I'm going to assign myself to this as I'm already in tha headspace, but I'll timebox it as I have the suspicion this is the kind of problem you can spend literally as many hours as you want on :smile:
Implemented in #16
At the moment the shims around the
Player
trait are a bit rough, and it could be a big win to automate as much of the process as possible (within reason) so we don't waste a lot of time keeping the glue code up to date manually as the Player<->World interaction changes.Some pointers:
wasmer
instead ofwasmtime
, remains the best reference I've found since he's trying to solve a problem almost identical to ours.Player
module that doesn't actually look into the result ofinspect
at all would cause the import symbol not to be emitted, which would currently cause a panic as ourspawn_player
function expects exactly one import).loop {}
kind) and stalls the entire process.