diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-13 13:24:08 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-13 13:24:28 +0200 |
commit | 76f46e54175253d4b2ba61b9cb8f2525a48c15d8 (patch) | |
tree | 8664af77e9bd66ae578fa83870026c2d6bca6065 /pkg/ui/multiplayer/multiplayer.go | |
parent | 72382e2dd9e509e6467dab9bfd11b7c7ddcf918a (diff) |
Create adversary's server
Diffstat (limited to 'pkg/ui/multiplayer/multiplayer.go')
-rw-r--r-- | pkg/ui/multiplayer/multiplayer.go | 8 |
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, } } |