1.1 Shared
1.1.1 Location
1.1.2 Direction
1.1.3 Entity
1.1.4 Request
1.1.5 Reply
8.14
1.1.4 Request🔗

Source code at request.rkt

A request from a player client to the server contains a type, entity id and parameter.

(struct request (type id parameter) #:prefab)

The request types are these:

(define request-drop 0)
(define request-move 1)
(define request-take 2)
(define request-transfer 3)

Requests may also be just a request name.

(define request-draw "draw")
(define request-hello "hello")