summaryrefslogtreecommitdiff
path: root/src/network/network_coordinator.h
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-07-17 23:42:43 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-07-18 19:36:38 +0200
commit386ef4dac3c42a4454fb9cdfdcf7d6acfa9a3d0a (patch)
tree361a942eceb10b1499b88417e2148aa2bdc7d250 /src/network/network_coordinator.h
parent3eaa4706325556bfb1351d2ff392b5bc205fd238 (diff)
downloadopenttd-386ef4dac3c42a4454fb9cdfdcf7d6acfa9a3d0a.tar.xz
Feature: [Game Coordinator] Send NewGRF names to the client
Diffstat (limited to 'src/network/network_coordinator.h')
-rw-r--r--src/network/network_coordinator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/network_coordinator.h b/src/network/network_coordinator.h
index f6859f859..63ced5121 100644
--- a/src/network/network_coordinator.h
+++ b/src/network/network_coordinator.h
@@ -54,6 +54,9 @@ private:
std::map<std::string, std::map<int, std::unique_ptr<ClientNetworkStunSocketHandler>>> stun_handlers; ///< All pending STUN handlers, stored by token:family.
TCPConnecter *game_connecter = nullptr; ///< Pending connecter to the game server.
+ uint32 newgrf_lookup_table_cursor = 0; ///< Last received cursor for the #GameInfoNewGRFLookupTable updates.
+ GameInfoNewGRFLookupTable newgrf_lookup_table; ///< Table to look up NewGRFs in the GC_LISTING packets.
+
protected:
bool Receive_GC_ERROR(Packet *p) override;
bool Receive_GC_REGISTER_ACK(Packet *p) override;
@@ -63,6 +66,7 @@ protected:
bool Receive_GC_DIRECT_CONNECT(Packet *p) override;
bool Receive_GC_STUN_REQUEST(Packet *p) override;
bool Receive_GC_STUN_CONNECT(Packet *p) override;
+ bool Receive_GC_NEWGRF_LOOKUP(Packet *p) override;
public:
/** The idle timeout; when to close the connection because it's idle. */