5080ff4

Branches > main > 5080ff4 > files / src / net / bowmap / transport / streams.clj

Update interpret-packet docstrings & comments

Grahp, 2026-08-23

Commit: 5080ff43982e5b736cf66cddf8979a8b018ea6af
Parent: e234a79

1 changed file:

src/net/bowmap/protocol/handle.clj modified (view file)

@@ -16,7 +16,8 @@    [net.bowmap.stormbow.event :as event]))  (defmulti interpret-packet-  "Interprets one serverbound packet, returns a map of [:client :packets :events :keep-alive?]"+  "Interprets one serverbound packet, returns a map of [:client :packets :events :keep-alive?].+   Safe to call within a transaction, but may update refs."   (fn [client packet]     (::pk/id packet))) @@ -82,8 +83,6 @@              :chunk-z z))))  (defmethod interpret-packet ::serverbound/finish-config [client _]-  ; TODO shit, this is not a pure function!-  ; I'm just going to pretend like this is a pure function for now.   (let [entity-id (entity/next-entity-id)         uuid (req! client ::player/uuid)         client (assoc client@@ -136,9 +135,9 @@                          :flags #{}}))      :keep-alive? true})) -; TODO flags are currently unused :p (defn handle-player-update-movement-packet [{::player/keys! [uuid]}                                             {:keys [& ::position/x ::position/y ::position/z ::position/yaw ::position/pitch]+                                             ; :flags are currently unused                                              :select movement}]   {:events [(merge {::event/id ::event/updated-player-movement                    ::player/uuid uuid