2022-11-07 08:12:35 +00:00
|
|
|
#ifndef __GAMEDEPENDENCIES__H__
|
|
|
|
#define __GAMEDEPENDENCIES__H__
|
|
|
|
|
|
|
|
#include "Game.h"
|
2023-10-21 23:31:55 +00:00
|
|
|
#include "Logger.h"
|
2022-11-07 08:12:35 +00:00
|
|
|
#include "dServer.h"
|
2024-01-08 23:32:09 +00:00
|
|
|
#include "CDClientManager.h"
|
2023-01-07 05:17:05 +00:00
|
|
|
#include "EntityInfo.h"
|
2022-11-07 08:12:35 +00:00
|
|
|
#include "EntityManager.h"
|
2023-08-05 08:21:59 +00:00
|
|
|
#include "dZoneManager.h"
|
2023-01-12 06:36:03 +00:00
|
|
|
#include "dConfig.h"
|
2022-11-28 00:48:46 +00:00
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
2022-11-07 08:12:35 +00:00
|
|
|
class dZoneManager;
|
|
|
|
class AssetManager;
|
|
|
|
|
|
|
|
class dServerMock : public dServer {
|
2022-11-28 00:48:46 +00:00
|
|
|
RakNet::BitStream* sentBitStream = nullptr;
|
2022-11-07 08:12:35 +00:00
|
|
|
public:
|
|
|
|
dServerMock() {};
|
|
|
|
~dServerMock() {};
|
2022-11-28 00:48:46 +00:00
|
|
|
RakNet::BitStream* GetMostRecentBitStream() { return sentBitStream; };
|
|
|
|
void Send(RakNet::BitStream* bitStream, const SystemAddress& sysAddr, bool broadcast) override { sentBitStream = bitStream; };
|
2022-11-07 08:12:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class GameDependenciesTest : public ::testing::Test {
|
|
|
|
protected:
|
2023-08-05 08:21:59 +00:00
|
|
|
void SetUpDependencies();
|
2022-11-07 08:12:35 +00:00
|
|
|
|
2023-08-05 08:21:59 +00:00
|
|
|
void TearDownDependencies();
|
2022-11-07 08:12:35 +00:00
|
|
|
|
2023-08-05 08:21:59 +00:00
|
|
|
EntityInfo info;
|
2022-11-07 08:12:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__GAMEDEPENDENCIES__H__
|