Skip to content

Commit

Permalink
Reduce includes in xfer.h to reduce compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon authored and OmniBlade committed Feb 15, 2024
1 parent 95c39cc commit 04f011a
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/game/common/audio/audiomanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "filesystem.h"
#include "gamemusic.h"
#include "gamesounds.h"
#include "matrix3d.h"
#include "terrainlogic.h"
#include "w3dview.h"
#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion src/game/common/system/xfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* A full copy of the GNU General Public License can be found in
* LICENSE
*/
#include "xfer.h"
#include "bitflags.h"
#include "color.h"
#include "endiantype.h"
#include "gamestate.h"
#include "matrix3d.h"
Expand Down
19 changes: 14 additions & 5 deletions src/game/common/system/xfer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,27 @@
#pragma once

#include "asciistring.h"
#include "color.h"
#include "coord.h"
#include "gametype.h"
#include "kindof.h"
#include "matrix3d.h"
#include "science.h"
#include "snapshot.h"
#include "unicodestring.h"
#include <list>
#include <vector>

template<int bits> class BitFlags;
class Coord3D;
class Coord2D;
class ICoord2D;
class ICoord3D;
class IRegion2D;
class IRegion3D;
class Matrix3D;
class Region2D;
class Region3D;
class RGBColor;
class RGBAColorReal;
class RGBAColorInt;
class Utf16String;
class SnapShot;

struct RealRange
{
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/xfercrc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#include "xfercrc.h"
#include "endiantype.h"
#include "snapshot.h"

// \brief Adds val to rotl m_crc
void XferCRC::Add_CRC(uint32_t val)
Expand Down
1 change: 1 addition & 0 deletions src/game/logic/object/helper/objectdefectionhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "objectdefectionhelper.h"
#include "audioeventrts.h"
#include "audiomanager.h"
#include "color.h"
#include "drawable.h"
#include "gamelogic.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/logic/object/update/laserupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#pragma once
#include "always.h"
#include "clientupdatemodule.h"
#include "coord.h"
#include "particlesysmanager.h"

class LaserUpdateModuleData : public ModuleData
Expand Down
1 change: 1 addition & 0 deletions src/game/logic/object/update/mobmemberslavedupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#pragma once

#include "always.h"
#include "color.h"
#include "updatemodule.h"

class MobMemberSlavedUpdate : public UpdateModule, public SlavedUpdateInterface
Expand Down
1 change: 1 addition & 0 deletions src/platform/w3dengine/client/drawable/draw/w3dropedraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once
#include "always.h"
#include "color.h"
#include "w3dmodeldraw.h"

class Line3DClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once
#include "always.h"
#include "color.h"
#include "w3dmodeldraw.h"

class Line3DClass;
Expand Down

0 comments on commit 04f011a

Please sign in to comment.