Sadly the developer who improved this stuff and knows the most about it currently not available.
The code your looking for is at lib/netplay/*
The "broadcasting" works by "NETsend
), where this loop:
- Code: Select all
for (player = firstPlayer; player <= lastPlayer; ++player)
Sends data to every player if the param "player" was NET_ALL_PLAYERS.
Seems like that NetMessage has its "type" stored.
Also take a look at "NETbeginEncode
), any message to compose gets initialized here.
I'm always at our irc channel #warzone2100-dev at freenode, don't hestitate to contact me there if you have more questions.