Replaced includes with forward declarations
This commit is contained in:
parent
ee14344c05
commit
743a50014a
@ -10,11 +10,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "Blocks/BlockPluginInterface.h"
|
||||
#include "World.h"
|
||||
#include "Bindings/PluginManager.h"
|
||||
|
||||
|
||||
|
||||
class cWorld;
|
||||
|
||||
|
||||
class cBlockInServerPluginInterface :
|
||||
|
@ -6,9 +6,9 @@
|
||||
#include "BlockEntity.h"
|
||||
#include "MetaRotator.h"
|
||||
#include "ChunkInterface.h"
|
||||
#include "../Entities/Entity.h"
|
||||
|
||||
|
||||
class cEntity;
|
||||
class cPlayer;
|
||||
class cWorldInterface;
|
||||
|
||||
|
@ -1,17 +1,19 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "BroadcastInterface.h"
|
||||
|
||||
#include "../Mobs/MonsterTypes.h"
|
||||
|
||||
class cItems;
|
||||
|
||||
typedef cItemCallback<cBlockEntity> cBlockEntityCallback;
|
||||
|
||||
|
||||
class cBroadcastInterface;
|
||||
class cItems;
|
||||
class cPlayer;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class cWorldInterface
|
||||
{
|
||||
public:
|
||||
|
@ -12,7 +12,6 @@
|
||||
#include "OSSupport/Network.h"
|
||||
#include "Defines.h"
|
||||
#include "Scoreboard.h"
|
||||
#include "Map.h"
|
||||
#include "UI/SlotArea.h"
|
||||
#include "json/json.h"
|
||||
#include "ChunkSender.h"
|
||||
@ -34,6 +33,7 @@ class cWindow;
|
||||
class cFallingBlock;
|
||||
class cCompositeChat;
|
||||
class cStatManager;
|
||||
class cMap;
|
||||
class cClientHandle;
|
||||
typedef std::shared_ptr<cClientHandle> cClientHandlePtr;
|
||||
|
||||
|
@ -12,10 +12,12 @@
|
||||
#include "ProjectileEntity.h"
|
||||
#include "EntityEffect.h"
|
||||
#include "../World.h"
|
||||
#include "Entity.h"
|
||||
|
||||
|
||||
|
||||
class cEntity;
|
||||
|
||||
|
||||
|
||||
// tolua_begin
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
#include "../Defines.h"
|
||||
#include "../Item.h"
|
||||
#include "../Blocks/BlockPluginInterface.h"
|
||||
|
||||
|
||||
|
||||
@ -12,6 +11,7 @@
|
||||
// fwd:
|
||||
class cWorld;
|
||||
class cPlayer;
|
||||
class cBlockPluginInterface;
|
||||
|
||||
|
||||
|
||||
|
@ -7,12 +7,6 @@
|
||||
|
||||
|
||||
|
||||
// fwd:
|
||||
class cChunk;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/** This class is used to determine which monster can be spawned in which place
|
||||
it is essentially static (eg. Squids spawn in water, Zombies spawn in dark places)
|
||||
|
@ -2,11 +2,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "../Entities/Pawn.h"
|
||||
#include "../Item.h"
|
||||
#include "MonsterTypes.h"
|
||||
#include "PathFinder.h"
|
||||
|
||||
|
||||
class cItem;
|
||||
class cClientHandle;
|
||||
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "PassiveAggressiveMonster.h"
|
||||
#include "../Entities/Entity.h"
|
||||
|
||||
|
||||
class cEntity;
|
||||
|
||||
|
||||
|
||||
|
@ -11,7 +11,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "Protocol.h"
|
||||
#include "../ByteBuffer.h"
|
||||
|
||||
|
||||
|
||||
class cByteBuffer;
|
||||
|
||||
|
||||
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
#include "../Defines.h"
|
||||
#include "../Scoreboard.h"
|
||||
#include "../Map.h"
|
||||
#include "../ByteBuffer.h"
|
||||
#include "../EffectID.h"
|
||||
|
||||
@ -20,6 +19,7 @@
|
||||
|
||||
|
||||
|
||||
class cMap;
|
||||
class cExpOrb;
|
||||
class cPlayer;
|
||||
class cEntity;
|
||||
|
@ -9,7 +9,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "../Inventory.h"
|
||||
#include "Window.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
#include "WorldStorage.h"
|
||||
#include "FastNBT.h"
|
||||
#include "../Mobs/Monster.h"
|
||||
|
||||
|
||||
|
||||
@ -18,7 +17,7 @@
|
||||
|
||||
// fwd: ItemGrid.h
|
||||
class cItemGrid;
|
||||
|
||||
class cMonster;
|
||||
class cProjectileEntity;
|
||||
class cHangingEntity;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user