51b3975

Branches > main > 51b3975 > files

message application docstrings and comments

Grahp, 2026-06-02

Commit: 51b3975936dc603ba4d85958babb8f24810a2903
Parent: 55b7ef8

1 changed file:

src/net/bowmap/message_application.clj modified (view file)

@@ -9,17 +9,12 @@    [net.bowmap.network.registry :as registry]    [net.bowmap.network.state :as state])) -; "packet handling" is inherently about the low-level protocol level, so either handle stuff at a low level or turn-; packets into high level game events to be sent somewhere else--; It's per-client, but can send stuff into the player-; And it's stateful!- (S/def ::messages (s/coll-of ::msg/message :type vector?)) (S/def ::response (s/schema [::client/client ::messages ::keep-alive?])) ; And eventually game events as well :) -; TODO nil? (defmulti apply-message+  "'Applies' a message to a client state. Returns the new client state, as well+   as the effects that should occur from this message (see the spec)."   (fn [msg client]     (::msg/id msg))) (s/fdef apply-message :args (s/cat ::msg/message ::client/client) :ret ::response)