Fix multiplayer questing

This fixes an issue with MsgSysCastBinary->MsgSysCastedBinary forwarding
and adds a basic stage-reservation system, allowing for some multiplayer
quests to work.
This commit is contained in:
Andrew Gutekanst
2020-03-08 20:50:27 -04:00
parent e41335b079
commit 615b75d101
4 changed files with 148 additions and 50 deletions

View File

@@ -22,10 +22,11 @@ type Session struct {
cryptConn *network.CryptConn
sendPackets chan []byte
stageID string
stage *Stage
charID uint32
logKey []byte
stageID string
stage *Stage
reservationStage *Stage // Required for the stateful MsgSysUnreserveStage packet.
charID uint32
logKey []byte
// A stack containing the stage movement history (push on enter/move, pop on back)
stageMoveStack *stringstack.StringStack