summaryrefslogtreecommitdiff
path: root/pkg/ui/multiplayer
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-13 13:24:08 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-13 13:24:28 +0200
commit76f46e54175253d4b2ba61b9cb8f2525a48c15d8 (patch)
tree8664af77e9bd66ae578fa83870026c2d6bca6065 /pkg/ui/multiplayer
parent72382e2dd9e509e6467dab9bfd11b7c7ddcf918a (diff)
Create adversary's server
Diffstat (limited to 'pkg/ui/multiplayer')
-rw-r--r--pkg/ui/multiplayer/multiplayer.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/ui/multiplayer/multiplayer.go b/pkg/ui/multiplayer/multiplayer.go
index 2f889c8..436388f 100644
--- a/pkg/ui/multiplayer/multiplayer.go
+++ b/pkg/ui/multiplayer/multiplayer.go
@@ -5,15 +5,15 @@ import (
)
type GameNetwork struct {
- server *network.TCPNetwork
- peer string
+ Server *network.TCPNetwork
+ Peer string
}
func NewGameNetwork(localID, localIP string, localPort int, callback func()) *GameNetwork {
server := network.NewTCPNetwork(localID, localIP, localPort, callback)
peer := ""
return &GameNetwork{
- server: server,
- peer: peer,
+ Server: server,
+ Peer: peer,
}
}