mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
replace include guards with pragma once
This commit is contained in:
parent
f43cc93cd2
commit
de5c75d782
164 changed files with 166 additions and 656 deletions
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_BLOCKS_CONTROLLER_HPP_
|
||||
#define LOGIC_BLOCKS_CONTROLLER_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <glm/glm.hpp>
|
||||
|
|
@ -62,5 +61,3 @@ public:
|
|||
/// @brief Add block interaction callback
|
||||
void listenBlockInteraction(const on_block_interaction& callback);
|
||||
};
|
||||
|
||||
#endif // LOGIC_BLOCKS_CONTROLLER_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef VOXELS_CHUNKSCONTROLLER_HPP_
|
||||
#define VOXELS_CHUNKSCONTROLLER_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
|
@ -31,5 +30,3 @@ public:
|
|||
/// @param maxDuration milliseconds reserved for chunks loading
|
||||
void update(int64_t maxDuration);
|
||||
};
|
||||
|
||||
#endif // VOXELS_CHUNKSCONTROLLER_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_COMMANDS_INTERPRETER_HPP_
|
||||
#define LOGIC_COMMANDS_INTERPRETER_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
|
@ -159,5 +158,3 @@ namespace cmd {
|
|||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // LOGIC_COMMANDS_INTERPRETER_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_ENGINE_CONTROLLER_HPP_
|
||||
#define LOGIC_ENGINE_CONTROLLER_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
@ -36,5 +35,3 @@ public:
|
|||
|
||||
void reopenWorld(World* world);
|
||||
};
|
||||
|
||||
#endif // LOGIC_ENGINE_CONTROLLER_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_LEVEL_CONTROLLER_HPP_
|
||||
#define LOGIC_LEVEL_CONTROLLER_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
|
@ -37,5 +36,3 @@ public:
|
|||
BlocksController* getBlocksController();
|
||||
PlayerController* getPlayerController();
|
||||
};
|
||||
|
||||
#endif // LOGIC_LEVEL_CONTROLLER_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef PLAYER_CONTROL_HPP_
|
||||
#define PLAYER_CONTROL_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <memory>
|
||||
|
|
@ -74,5 +73,3 @@ public:
|
|||
void postUpdate(float delta, bool input, bool pause);
|
||||
Player* getPlayer();
|
||||
};
|
||||
|
||||
#endif /* PLAYER_CONTROL_HPP_ */
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_API_LUA_HPP_
|
||||
#define LOGIC_SCRIPTING_API_LUA_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
|
@ -74,5 +73,3 @@ namespace lua {
|
|||
}
|
||||
|
||||
void initialize_libs_extends(lua::State* L);
|
||||
|
||||
#endif // LOGIC_SCRIPTING_API_LUA_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_LUA_LIBENTITY_HPP_
|
||||
#define LOGIC_SCRIPTING_LUA_LIBENTITY_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
|
|
@ -18,5 +17,3 @@ inline std::optional<Entity> get_entity(lua::State* L, int idx) {
|
|||
auto level = scripting::controller->getLevel();
|
||||
return level->entities->get(id);
|
||||
}
|
||||
|
||||
#endif // LOGIC_SCRIPTING_LUA_LIBENTITY_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_LUA_HPP_
|
||||
#define LOGIC_SCRIPTING_LUA_HPP_
|
||||
#pragma once
|
||||
|
||||
#include "delegates.hpp"
|
||||
#include "logic/scripting/scripting.hpp"
|
||||
|
|
@ -9,7 +8,7 @@
|
|||
|
||||
#include <luajit-2.1/lua.hpp>
|
||||
#else
|
||||
#include <lua.hpp"
|
||||
#include <lua.hpp>
|
||||
#endif
|
||||
#include <glm/glm.hpp>
|
||||
#include <stdexcept>
|
||||
|
|
@ -31,5 +30,3 @@ namespace lua {
|
|||
using Number = lua_Number;
|
||||
using Integer = lua_Integer;
|
||||
}
|
||||
|
||||
#endif // LOGIC_SCRIPTING_LUA_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_LUA_LUA_CUSTOM_TYPES_HPP_
|
||||
#define LOGIC_SCRIPTING_LUA_LUA_CUSTOM_TYPES_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
@ -31,5 +30,3 @@ namespace lua {
|
|||
inline static std::string TYPENAME = "bytearray";
|
||||
};
|
||||
}
|
||||
|
||||
#endif // LOGIC_SCRIPTING_LUA_LUA_CUSTOM_TYPES_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_LUA_STATE_HPP_
|
||||
#define LOGIC_SCRIPTING_LUA_STATE_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
|
@ -20,5 +19,3 @@ namespace lua {
|
|||
);
|
||||
lua::State* get_main_thread();
|
||||
}
|
||||
|
||||
#endif // LOGIC_SCRIPTING_LUA_STATE_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_LUA_UTIL_HPP_
|
||||
#define LOGIC_SCRIPTING_LUA_UTIL_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <typeindex>
|
||||
#include <typeinfo>
|
||||
|
|
@ -639,5 +638,3 @@ namespace lua {
|
|||
setglobal(L, name);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // LOGIC_SCRIPTING_LUA_UTIL_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_SCRIPTING_HPP_
|
||||
#define LOGIC_SCRIPTING_SCRIPTING_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
#include <glm/glm.hpp>
|
||||
|
|
@ -171,5 +170,3 @@ namespace scripting {
|
|||
/// @brief Finalize lua state. Using scripting after will lead to Lua panic
|
||||
void close();
|
||||
}
|
||||
|
||||
#endif // LOGIC_SCRIPTING_SCRIPTING_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_SCRIPTING_FUNCTIONAL_HPP_
|
||||
#define LOGIC_SCRIPTING_SCRIPTING_FUNCTIONAL_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <string>
|
||||
|
|
@ -78,5 +77,3 @@ namespace scripting {
|
|||
const std::string& file = "<string>"
|
||||
);
|
||||
}
|
||||
|
||||
#endif // LOGIC_SCRIPTING_SCRIPTING_FUNCTIONAL_HPP_
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#ifndef LOGIC_SCRIPTING_SCRIPTING_HUD_HPP_
|
||||
#define LOGIC_SCRIPTING_SCRIPTING_HUD_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
|
|
@ -27,5 +26,3 @@ namespace scripting {
|
|||
const scriptenv &env, const std::string &packid, const fs::path &file
|
||||
);
|
||||
}
|
||||
|
||||
#endif // LOGIC_SCRIPTING_SCRIPTING_HUD_HPP_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue