replace include guards with pragma once

This commit is contained in:
MihailRis
2024-08-10 01:57:59 +03:00
parent f43cc93cd2
commit de5c75d782
164 changed files with 166 additions and 656 deletions
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef WORLD_LEVEL_HPP_
#define WORLD_LEVEL_HPP_
#pragma once
#include <memory>
#include <vector>
@@ -85,5 +84,3 @@ public:
std::shared_ptr<Camera> getCamera(const std::string& name);
};
#endif /* WORLD_LEVEL_HPP_ */
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef WORLD_LEVEL_EVENTS_HPP_
#define WORLD_LEVEL_EVENTS_HPP_
#pragma once
#include <functional>
#include <unordered_map>
@@ -20,5 +19,3 @@ public:
void listen(lvl_event_type type, const chunk_event_func& func);
void trigger(lvl_event_type type, Chunk* chunk);
};
#endif // WORLD_LEVEL_EVENTS_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef WORLD_WORLD_HPP_
#define WORLD_WORLD_HPP_
#pragma once
#include <filesystem>
#include <memory>
@@ -152,5 +151,3 @@ public:
std::unique_ptr<dynamic::Map> serialize() const override;
void deserialize(dynamic::Map* src) override;
};
#endif // WORLD_WORLD_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef WORLD_WORLDGENERATORS_HPP_
#define WORLD_WORLDGENERATORS_HPP_
#pragma once
#include <map>
#include <string>
@@ -32,5 +31,3 @@ void WorldGenerators::addGenerator(std::string id) {
return (WorldGenerator*)new T(content);
};
}
#endif /* WORLD_WORLDGENERATORS_HPP_ */