diff options
author | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-25 15:46:47 +0100 |
---|---|---|
committer | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-25 15:46:47 +0100 |
commit | 3073a88cd16b6e85401363c814e5ac7ae11b9270 (patch) | |
tree | 30050be82e0056a2ceaf8233d5e88f2946773a53 /source/game/interfaces | |
parent | b8da62bf43e42e6fc895664a9faf621cbe0325c8 (diff) |
Use "#pragma once" instead of include guards
Diffstat (limited to 'source/game/interfaces')
32 files changed, 32 insertions, 128 deletions
diff --git a/source/game/interfaces/StarAggressiveEntity.hpp b/source/game/interfaces/StarAggressiveEntity.hpp index 8f202dc..c9e7131 100644 --- a/source/game/interfaces/StarAggressiveEntity.hpp +++ b/source/game/interfaces/StarAggressiveEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_AGGRESSIVE_ENTITY_HPP -#define STAR_AGGRESSIVE_ENTITY_HPP +#pragma once #include "StarEntity.hpp" @@ -13,5 +12,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarAnchorableEntity.hpp b/source/game/interfaces/StarAnchorableEntity.hpp index 4f0e5b8..3b0e4e9 100644 --- a/source/game/interfaces/StarAnchorableEntity.hpp +++ b/source/game/interfaces/StarAnchorableEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_ANCHORABLE_ENTITY_HPP -#define STAR_ANCHORABLE_ENTITY_HPP +#pragma once #include "StarEntity.hpp" @@ -35,5 +34,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarBeamItem.hpp b/source/game/interfaces/StarBeamItem.hpp index 7c7cfae..8267a40 100644 --- a/source/game/interfaces/StarBeamItem.hpp +++ b/source/game/interfaces/StarBeamItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_BEAM_ITEM_HPP -#define STAR_BEAM_ITEM_HPP +#pragma once #include "StarSpline.hpp" #include "StarGameTypes.hpp" @@ -74,5 +73,3 @@ protected: }; } - -#endif diff --git a/source/game/interfaces/StarChattyEntity.hpp b/source/game/interfaces/StarChattyEntity.hpp index cd6ac8a..6278a62 100644 --- a/source/game/interfaces/StarChattyEntity.hpp +++ b/source/game/interfaces/StarChattyEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_CHATTY_ENTITY_HPP -#define STAR_CHATTY_ENTITY_HPP +#pragma once #include "StarChatAction.hpp" #include "StarEntity.hpp" @@ -16,5 +15,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarContainerEntity.hpp b/source/game/interfaces/StarContainerEntity.hpp index 6a123ee..d68e722 100644 --- a/source/game/interfaces/StarContainerEntity.hpp +++ b/source/game/interfaces/StarContainerEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_CONTAINER_ENTITY_HPP -#define STAR_CONTAINER_ENTITY_HPP +#pragma once #include "StarGameTypes.hpp" #include "StarTileEntity.hpp" @@ -46,5 +45,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarDamageBarEntity.hpp b/source/game/interfaces/StarDamageBarEntity.hpp index 758ccab..bbcce57 100644 --- a/source/game/interfaces/StarDamageBarEntity.hpp +++ b/source/game/interfaces/StarDamageBarEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_DAMAGE_BAR_ENTITY_HPP -#define STAR_DAMAGE_BAR_ENTITY_HPP +#pragma once #include "StarPortraitEntity.hpp" @@ -23,5 +22,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarDurabilityItem.hpp b/source/game/interfaces/StarDurabilityItem.hpp index 9743a67..fdc95e6 100644 --- a/source/game/interfaces/StarDurabilityItem.hpp +++ b/source/game/interfaces/StarDurabilityItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_DURABILITY_ITEM_HPP -#define STAR_DURABILITY_ITEM_HPP +#pragma once #include "StarConfig.hpp" @@ -14,5 +13,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarEffectSourceItem.hpp b/source/game/interfaces/StarEffectSourceItem.hpp index 9890885..77fdc69 100644 --- a/source/game/interfaces/StarEffectSourceItem.hpp +++ b/source/game/interfaces/StarEffectSourceItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_EFFECT_SOURCE_ITEM_HPP -#define STAR_EFFECT_SOURCE_ITEM_HPP +#pragma once #include "StarString.hpp" @@ -14,5 +13,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarEmoteEntity.hpp b/source/game/interfaces/StarEmoteEntity.hpp index b66da52..e1b85bb 100644 --- a/source/game/interfaces/StarEmoteEntity.hpp +++ b/source/game/interfaces/StarEmoteEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_EMOTE_ENTITY_HPP -#define STAR_EMOTE_ENTITY_HPP +#pragma once #include "StarHumanoid.hpp" #include "StarEntity.hpp" @@ -14,5 +13,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarEntity.hpp b/source/game/interfaces/StarEntity.hpp index e55fed8..7da2a41 100644 --- a/source/game/interfaces/StarEntity.hpp +++ b/source/game/interfaces/StarEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_ENTITY_HPP -#define STAR_ENTITY_HPP +#pragma once #include "StarCasting.hpp" #include "StarDamage.hpp" @@ -227,5 +226,3 @@ EntityFilter entityTypeFilter(function<bool(shared_ptr<EntityT> const&)> filter }; } } - -#endif diff --git a/source/game/interfaces/StarFireableItem.hpp b/source/game/interfaces/StarFireableItem.hpp index 4616bad..4659ba9 100644 --- a/source/game/interfaces/StarFireableItem.hpp +++ b/source/game/interfaces/StarFireableItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_FIREABLE_ITEM_HPP -#define STAR_FIREABLE_ITEM_HPP +#pragma once #include "StarToolUserItem.hpp" #include "StarStatusEffectItem.hpp" @@ -87,5 +86,3 @@ protected: }; } - -#endif diff --git a/source/game/interfaces/StarInspectableEntity.hpp b/source/game/interfaces/StarInspectableEntity.hpp index c1c4abc..e2b0475 100644 --- a/source/game/interfaces/StarInspectableEntity.hpp +++ b/source/game/interfaces/StarInspectableEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_INSPECTABLE_ENTITY_HPP -#define STAR_INSPECTABLE_ENTITY_HPP +#pragma once #include "StarEntity.hpp" @@ -33,5 +32,3 @@ inline Maybe<String> InspectableEntity::inspectionDescription(String const&) con } } - -#endif diff --git a/source/game/interfaces/StarInteractiveEntity.hpp b/source/game/interfaces/StarInteractiveEntity.hpp index 9e655e1..5887509 100644 --- a/source/game/interfaces/StarInteractiveEntity.hpp +++ b/source/game/interfaces/StarInteractiveEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_INTERACTIVE_ENTITY_HPP -#define STAR_INTERACTIVE_ENTITY_HPP +#pragma once #include "StarInteractionTypes.hpp" #include "StarEntity.hpp" @@ -30,5 +29,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarLoungingEntities.hpp b/source/game/interfaces/StarLoungingEntities.hpp index 89510a3..2ccc3bd 100644 --- a/source/game/interfaces/StarLoungingEntities.hpp +++ b/source/game/interfaces/StarLoungingEntities.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_LOUNGING_ENTITIES_HPP -#define STAR_LOUNGING_ENTITIES_HPP +#pragma once #include "StarDrawable.hpp" #include "StarAnchorableEntity.hpp" @@ -68,5 +67,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarNametagEntity.hpp b/source/game/interfaces/StarNametagEntity.hpp index 02aa643..0e42618 100644 --- a/source/game/interfaces/StarNametagEntity.hpp +++ b/source/game/interfaces/StarNametagEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_NAMETAG_ENTITY_HPP -#define STAR_NAMETAG_ENTITY_HPP +#pragma once #include "StarEntity.hpp" @@ -17,5 +16,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarNonRotatedDrawablesItem.hpp b/source/game/interfaces/StarNonRotatedDrawablesItem.hpp index d11eb7a..4773e32 100644 --- a/source/game/interfaces/StarNonRotatedDrawablesItem.hpp +++ b/source/game/interfaces/StarNonRotatedDrawablesItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_NON_ROTATED_DRAWABLES_ITEM_HPP -#define STAR_NON_ROTATED_DRAWABLES_ITEM_HPP +#pragma once #include "StarDrawable.hpp" @@ -14,5 +13,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarPhysicsEntity.hpp b/source/game/interfaces/StarPhysicsEntity.hpp index b9a7611..058368b 100644 --- a/source/game/interfaces/StarPhysicsEntity.hpp +++ b/source/game/interfaces/StarPhysicsEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PHYSICS_ENTITY_HPP -#define STAR_PHYSICS_ENTITY_HPP +#pragma once #include "StarPoly.hpp" #include "StarVariant.hpp" @@ -57,5 +56,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarPointableItem.hpp b/source/game/interfaces/StarPointableItem.hpp index a5bd6ea..0c4db8d 100644 --- a/source/game/interfaces/StarPointableItem.hpp +++ b/source/game/interfaces/StarPointableItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_POINTABLE_ITEM_HPP -#define STAR_POINTABLE_ITEM_HPP +#pragma once #include "StarGameTypes.hpp" #include "StarDrawable.hpp" @@ -18,5 +17,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarPortraitEntity.hpp b/source/game/interfaces/StarPortraitEntity.hpp index 4dda3e6..b2ad3d3 100644 --- a/source/game/interfaces/StarPortraitEntity.hpp +++ b/source/game/interfaces/StarPortraitEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PORTRAIT_ENTITY_HPP -#define STAR_PORTRAIT_ENTITY_HPP +#pragma once #include "StarDrawable.hpp" #include "StarEntity.hpp" @@ -15,5 +14,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarPreviewTileTool.hpp b/source/game/interfaces/StarPreviewTileTool.hpp index 12a4b2b..caa9d32 100644 --- a/source/game/interfaces/StarPreviewTileTool.hpp +++ b/source/game/interfaces/StarPreviewTileTool.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PREVIEW_TILE_TOOL_HPP -#define STAR_PREVIEW_TILE_TOOL_HPP +#pragma once #include "StarList.hpp" @@ -16,5 +15,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarPreviewableItem.hpp b/source/game/interfaces/StarPreviewableItem.hpp index 4cfebd5..31d2e45 100644 --- a/source/game/interfaces/StarPreviewableItem.hpp +++ b/source/game/interfaces/StarPreviewableItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PREVIEWABLE_ITEM -#define STAR_PREVIEWABLE_ITEM +#pragma once #include "StarDrawable.hpp" @@ -15,5 +14,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarRenderableItem.hpp b/source/game/interfaces/StarRenderableItem.hpp index 9b02763..834b6eb 100644 --- a/source/game/interfaces/StarRenderableItem.hpp +++ b/source/game/interfaces/StarRenderableItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_RENDERABLE_ITEM_HPP -#define STAR_RENDERABLE_ITEM_HPP +#pragma once #include "StarEntityRendering.hpp" @@ -15,5 +14,3 @@ namespace Star { }; } - -#endif diff --git a/source/game/interfaces/StarScriptedEntity.hpp b/source/game/interfaces/StarScriptedEntity.hpp index 40aa552..b637d55 100644 --- a/source/game/interfaces/StarScriptedEntity.hpp +++ b/source/game/interfaces/StarScriptedEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_SCRIPTED_ENTITY_HPP -#define STAR_SCRIPTED_ENTITY_HPP +#pragma once #include "StarEntity.hpp" #include "StarLua.hpp" @@ -21,5 +20,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarStatusEffectEntity.hpp b/source/game/interfaces/StarStatusEffectEntity.hpp index d971671..060f3b5 100644 --- a/source/game/interfaces/StarStatusEffectEntity.hpp +++ b/source/game/interfaces/StarStatusEffectEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_STATUS_EFFECT_ENTITY_HPP -#define STAR_STATUS_EFFECT_ENTITY_HPP +#pragma once #include "StarEntity.hpp" @@ -14,5 +13,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarStatusEffectItem.hpp b/source/game/interfaces/StarStatusEffectItem.hpp index 8590e7b..4370094 100644 --- a/source/game/interfaces/StarStatusEffectItem.hpp +++ b/source/game/interfaces/StarStatusEffectItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_STATUS_EFFECT_ITEM_HPP -#define STAR_STATUS_EFFECT_ITEM_HPP +#pragma once #include "StarStatusTypes.hpp" @@ -14,5 +13,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarSwingableItem.hpp b/source/game/interfaces/StarSwingableItem.hpp index 2ea9cac..c12d162 100644 --- a/source/game/interfaces/StarSwingableItem.hpp +++ b/source/game/interfaces/StarSwingableItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_SWINGABLE_ITEM_HPP -#define STAR_SWINGABLE_ITEM_HPP +#pragma once #include "StarFireableItem.hpp" @@ -32,5 +31,3 @@ protected: }; } - -#endif diff --git a/source/game/interfaces/StarTileEntity.hpp b/source/game/interfaces/StarTileEntity.hpp index 7fd366f..60e953d 100644 --- a/source/game/interfaces/StarTileEntity.hpp +++ b/source/game/interfaces/StarTileEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_TILE_ENTITY_HPP -#define STAR_TILE_ENTITY_HPP +#pragma once #include "StarEntity.hpp" #include "StarTileDamage.hpp" @@ -96,5 +95,3 @@ inline bool MaterialSpace::operator==(MaterialSpace const& rhs) const { } } - -#endif diff --git a/source/game/interfaces/StarToolUserEntity.hpp b/source/game/interfaces/StarToolUserEntity.hpp index a83d5ff..dcda91d 100644 --- a/source/game/interfaces/StarToolUserEntity.hpp +++ b/source/game/interfaces/StarToolUserEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_TOOL_USER_ENTITY_HPP -#define STAR_TOOL_USER_ENTITY_HPP +#pragma once #include "StarEntity.hpp" #include "StarParticle.hpp" @@ -100,5 +99,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarToolUserItem.hpp b/source/game/interfaces/StarToolUserItem.hpp index a4318a9..34ecfba 100644 --- a/source/game/interfaces/StarToolUserItem.hpp +++ b/source/game/interfaces/StarToolUserItem.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_TOOL_USER_ITEM_HPP -#define STAR_TOOL_USER_ITEM_HPP +#pragma once #include "StarToolUserEntity.hpp" #include "StarPhysicsEntity.hpp" @@ -45,5 +44,3 @@ private: }; } - -#endif diff --git a/source/game/interfaces/StarWarpTargetEntity.hpp b/source/game/interfaces/StarWarpTargetEntity.hpp index cdc68f5..4f5b71b 100644 --- a/source/game/interfaces/StarWarpTargetEntity.hpp +++ b/source/game/interfaces/StarWarpTargetEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_WARP_TARGET_ENTITY_HPP -#define STAR_WARP_TARGET_ENTITY_HPP +#pragma once #include "StarWarping.hpp" #include "StarTileEntity.hpp" @@ -16,5 +15,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarWireEntity.hpp b/source/game/interfaces/StarWireEntity.hpp index a848865..57b6e92 100644 --- a/source/game/interfaces/StarWireEntity.hpp +++ b/source/game/interfaces/StarWireEntity.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_WIRE_ENTITY_HPP -#define STAR_WIRE_ENTITY_HPP +#pragma once #include "StarWiring.hpp" #include "StarTileEntity.hpp" @@ -24,5 +23,3 @@ public: }; } - -#endif diff --git a/source/game/interfaces/StarWorld.hpp b/source/game/interfaces/StarWorld.hpp index e1986fa..95fe7ae 100644 --- a/source/game/interfaces/StarWorld.hpp +++ b/source/game/interfaces/StarWorld.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_WORLD_HPP -#define STAR_WORLD_HPP +#pragma once #include "StarTileEntity.hpp" #include "StarInteractionTypes.hpp" @@ -258,5 +257,3 @@ List<shared_ptr<EntityT>> World::atTile(Vec2I const& pos) const { return list; } } - -#endif |