* Fix circular includes and include cleanup Fixed a bug where other *.h header files would include extension.h, which itself was already included in those same headers, creating a circular dependency cycle. This caused build errors and made compilation unpredictable. To resolve this: - Moved implementation-only includes to .cpp files where they are actually needed. - Added forward declarations where possible to avoid pulling in unnecessary headers. - Ensured extension.h only contains declarations that require full type definitions. This improves build stability and compilation time. * Clean up includes and fix build errors - Replaced full includes with forward declarations where possible - Moved implementation-only includes from .h to .cpp files - Added missing includes for stdint.h and Steam interfaces - This significantly reduces compilation time and prevents future dependency issues * Switch to SourceMod SDK smsdk_ext instead of local copy
55 lines
2.2 KiB
C++
55 lines
2.2 KiB
C++
/*
|
|
This file is part of SourcePawn SteamWorks.
|
|
|
|
SourcePawn SteamWorks is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, as per version 3 of the License.
|
|
|
|
SourcePawn SteamWorks is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with SourcePawn SteamWorks. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
Author: Kyle Sanderson (KyleS).
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <steam_gameserver.h>
|
|
|
|
namespace SourceMod
|
|
{
|
|
class IForward;
|
|
}
|
|
|
|
typedef uint32_t Account_t;
|
|
|
|
class SteamWorksForwards
|
|
{
|
|
public:
|
|
SteamWorksForwards();
|
|
~SteamWorksForwards();
|
|
|
|
public:
|
|
void NotifyPawnValidateClient(Account_t parent, Account_t child);
|
|
|
|
private:
|
|
STEAM_GAMESERVER_CALLBACK(SteamWorksForwards, OnGSClientApprove, GSClientApprove_t, m_CallbackGSClientApprove);
|
|
STEAM_GAMESERVER_CALLBACK(SteamWorksForwards, OnValidateTicket, ValidateAuthTicketResponse_t, m_CallbackValidateTicket);
|
|
STEAM_GAMESERVER_CALLBACK(SteamWorksForwards, OnSteamServersConnected, SteamServersConnected_t, m_CallbackSteamConnected);
|
|
STEAM_GAMESERVER_CALLBACK(SteamWorksForwards, OnSteamServersConnectFailure, SteamServerConnectFailure_t, m_CallbackSteamConnectFailure);
|
|
STEAM_GAMESERVER_CALLBACK(SteamWorksForwards, OnSteamServersDisconnected, SteamServersDisconnected_t, m_CallbackSteamDisconnected);
|
|
STEAM_GAMESERVER_CALLBACK(SteamWorksForwards, OnGroupStatusResult, GSClientGroupStatus_t, m_CallbackGroupStatus);
|
|
|
|
private:
|
|
SourceMod::IForward *pFOVC; /* Forward On Validate Client */
|
|
SourceMod::IForward *pFOVC_Old; /* OLD Forward On Validate Client */
|
|
SourceMod::IForward *pFOSSC; /* Forward On Steam Servers Connected */
|
|
SourceMod::IForward *pFOSSCF; /* Forward On Steam Servers Connect Failure */
|
|
SourceMod::IForward *pFOSSD; /* Forward On Steam Servers Disconnected */
|
|
SourceMod::IForward *pFOCGS; /* Forward On Client Group Status */
|
|
};
|