yes a lot of stuff

This commit is contained in:
adman
2026-01-18 17:10:46 +01:00
parent ac2713433e
commit 6deff7f6ea
12 changed files with 193 additions and 60 deletions
+3 -3
View File
@@ -41,13 +41,13 @@ const (
type Actor int
const (
Server Actor = iota
Servee Actor = iota // Servee is the one being served
Client
)
func (a Actor) SendDirection() Direction {
switch a {
case Server:
case Servee:
return ToClient
case Client:
return ToServer
@@ -58,7 +58,7 @@ func (a Actor) SendDirection() Direction {
func (a Actor) ReceiveDirection() Direction {
switch a {
case Server:
case Servee:
return ToServer
case Client:
return ToClient