Skip to content

Commit

Permalink
Include always.h in more headers
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon authored and OmniBlade committed Mar 18, 2024
1 parent 2658e67 commit 3da8ad5
Show file tree
Hide file tree
Showing 69 changed files with 83 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/game/client/drawable/update/swayclientupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "bittype.h"
#include "clientupdatemodule.h"
#include "namekeygenerator.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/fxlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "namekeygenerator.h"
#include "rtsutils.h"
#include "subsysteminterface.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/globallanguage.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "ini.h"
#include "subsysteminterface.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/maputil.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "coord.h"
#include "ini.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/terrain/terrainroads.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 "gametype.h"
#include "ini.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/client/w3dassetmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "assetmgr.h"
#include "mempoolobj.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/audio/audioeventinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "bitflags.h"
#include "ini.h"
#include "mempoolobj.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/audio/audioeventrts.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "audioeventinfo.h"
#include "coord.h"
#include "gametype.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/audio/gamesounds.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "audioeventrts.h"
#include "coord.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/bezier/bezfwditerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "beziersegment.h"

class BezFwdIterator
Expand Down
1 change: 1 addition & 0 deletions src/game/common/bezier/beziersegment.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "coord.h"
#include "matrix4.h"
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions src/game/common/commandlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "gamemessagelist.h"

class CommandList : public GameMessageList
Expand Down
1 change: 1 addition & 0 deletions src/game/common/gamemessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "coord.h"
#include "gametype.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/gamemessagelist.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "gamemessage.h"
#include "subsysteminterface.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/common/globaldata.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "color.h"
#include "coord.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/multiplayersettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#ifdef GAME_DLL
#include "hooker.h"
#endif
Expand Down
1 change: 1 addition & 0 deletions src/game/common/namekeygenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "bittype.h"
#include "ini.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/overridable.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "mempoolobj.h"

template<class T> class Override
Expand Down
1 change: 1 addition & 0 deletions src/game/common/randomvalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "bittype.h"

class INI;
Expand Down
1 change: 1 addition & 0 deletions src/game/common/rts/money.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "snapshot.h"

class INI;
Expand Down
1 change: 1 addition & 0 deletions src/game/common/rts/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "academystats.h"
#include "energy.h"
#include "handicap.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/rts/playerlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "player.h"
#include "snapshot.h"
#include "subsysteminterface.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/rts/scorekeeper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "bitflags.h"
#include "gametype.h"
#include "snapshot.h"
Expand Down
2 changes: 2 additions & 0 deletions src/game/common/system/disabledtypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
*/
#pragma once

#include "always.h"

template<int> class BitFlags;

enum DisabledType
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "gamememory.h"
#include "mempoolobj.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "file.h"
#include "rtsutils.h"
#include "subsysteminterface.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/functionlexicon.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "gamewindow.h"
#include "namekeygenerator.h"
#include "subsysteminterface.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/localfilesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "rtsutils.h"
#include "subsysteminterface.h"
#include <set>
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/memblob.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "memblock.h"
#include "rawalloc.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/mempoolobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "errorcodes.h"
#include "mempool.h"
#include "mempoolfact.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/savegame/gamestate.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "snapshot.h"
#include "subsysteminterface.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/streamingarchivefile.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "gamememory.h"
#include "ramfile.h"

Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/subsysteminterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/xfer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "gametype.h"
#include "kindof.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/common/system/xfercrc.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "xfer.h"

class XferCRC : public Xfer
Expand Down
1 change: 1 addition & 0 deletions src/game/common/userpreferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include <map>

Expand Down
2 changes: 2 additions & 0 deletions src/game/crashwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
*/
#pragma once

#include "always.h"

class CrashPreferences;

class CrashPrefWrapper
Expand Down
2 changes: 2 additions & 0 deletions src/game/logic/map/terrainlogic.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* LICENSE
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "coord.h"
#include "gametype.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/logic/object/objectcreationlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "mempoolobj.h"
#include "namekeygenerator.h"
#include "subsysteminterface.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/logic/object/objecttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "mempoolobj.h"
#include "snapshot.h"
Expand Down
2 changes: 2 additions & 0 deletions src/game/logic/object/partitionmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* LICENSE
*/
#pragma once

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

#include "always.h"
#include "asciistring.h"
#include "audioeventrts.h"
#include "coord.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/logic/scriptengine/scriptengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "coord.h"
#include "gametype.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/logic/scriptengine/scripttemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "asciistring.h"
#include "mempoolobj.h"
#include "namekeygenerator.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/logic/scriptengine/sequentialscript.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
#pragma once

#include "always.h"
#include "gametype.h"
#include "mempoolobj.h"
#include "snapshot.h"
Expand Down
1 change: 1 addition & 0 deletions src/game/logic/system/cavesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#pragma once

#include "always.h"
#include "gametype.h"
#include "mempoolobj.h"
#include "snapshot.h"
Expand Down
5 changes: 3 additions & 2 deletions src/platform/sdl2/sdl2gameengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
*/
#pragma once

#include "gameengine.h"

#ifndef BUILD_WITH_SDL2
#error Only include sdl2gameengine.h when building with SDL2
#endif

#include "always.h"
#include "gameengine.h"

#include <SDL.h>

namespace Thyme
Expand Down
1 change: 1 addition & 0 deletions src/platform/sdl2/sdl2mouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#error Only include sdl2mouse.h when building with SDL2
#endif

#include "always.h"
#include "mouse.h"

#include <SDL.h>
Expand Down
Loading

0 comments on commit 3da8ad5

Please sign in to comment.