diff options
author | rubidium <rubidium@openttd.org> | 2010-10-17 17:40:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-10-17 17:40:18 +0000 |
commit | d9602f4ef936b79c1d1ee785477323618e46f9cf (patch) | |
tree | 1420d0f86e4559de83ab250a109d2c7f7bca5f53 /src/network/network_admin.h | |
parent | 459514afe4f550a08d98958745d6cd8311c53fdd (diff) | |
download | openttd-d9602f4ef936b79c1d1ee785477323618e46f9cf.tar.xz |
(svn r20973) -Add: chat sending and receiving support for remote admins (dihedral)
Diffstat (limited to 'src/network/network_admin.h')
-rw-r--r-- | src/network/network_admin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/network_admin.h b/src/network/network_admin.h index 7f4f67de1..7174a191a 100644 --- a/src/network/network_admin.h +++ b/src/network/network_admin.h @@ -29,6 +29,7 @@ protected: DECLARE_ADMIN_RECEIVE_COMMAND(ADMIN_PACKET_ADMIN_QUIT); DECLARE_ADMIN_RECEIVE_COMMAND(ADMIN_PACKET_ADMIN_UPDATE_FREQUENCY); DECLARE_ADMIN_RECEIVE_COMMAND(ADMIN_PACKET_ADMIN_POLL); + DECLARE_ADMIN_RECEIVE_COMMAND(ADMIN_PACKET_ADMIN_CHAT); NetworkRecvStatus SendProtocol(); public: @@ -43,6 +44,7 @@ public: NetworkRecvStatus SendWelcome(); NetworkRecvStatus SendNewGame(); NetworkRecvStatus SendShutdown(); + NetworkRecvStatus SendDate(); NetworkRecvStatus SendClientJoin(ClientID client_id); NetworkRecvStatus SendClientInfo(const NetworkClientInfo *ci); @@ -56,6 +58,8 @@ public: NetworkRecvStatus SendCompanyEconomy(); NetworkRecvStatus SendCompanyStats(); + NetworkRecvStatus SendChat(NetworkAction action, DestType desttype, ClientID client_id, const char *msg, int64 data); + static void Send(); static void AcceptConnection(SOCKET s, const NetworkAddress &address); static bool AllowConnection(); @@ -81,6 +85,8 @@ void NetworkAdminClientError(ClientID client_id, NetworkErrorCode error_code); void NetworkAdminCompanyInfo(const Company *company, bool new_company); void NetworkAdminCompanyUpdate(const Company *company); void NetworkAdminCompanyRemove(CompanyID company_id, AdminCompanyRemoveReason bcrr); + +void NetworkAdminChat(NetworkAction action, DestType desttype, ClientID client_id, const char *msg, int64 data = 0, bool from_admin = false); void NetworkAdminUpdate(AdminUpdateFrequency freq); #endif /* ENABLE_NETWORK */ |