Skip to content

Commit

Permalink
refactor: update creation dates in header files to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterLaplace committed Nov 7, 2024
1 parent acf040d commit 1936628
Show file tree
Hide file tree
Showing 39 changed files with 74 additions and 117 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ set(HEADERS
Flakkari/Logger/Logger.hpp

Flakkari/Network/Network.hpp
Flakkari/Network/Packed.hpp
Flakkari/Network/Address.hpp
Flakkari/Network/Buffer.hpp
Flakkari/Network/Socket.hpp
Expand Down Expand Up @@ -78,7 +77,6 @@ set(HEADER_LIB_LOGGER

set(HEADER_LIB_NETWORK
Flakkari/Network/Network.hpp
Flakkari/Network/Packed.hpp
Flakkari/Network/Address.hpp
Flakkari/Network/Buffer.hpp
Flakkari/Network/Socket.hpp
Expand Down Expand Up @@ -198,6 +196,7 @@ add_library(flakkari_network SHARED ${SOURCES_LIB_NETWORK} ${HEADER_LIB_NETWORK}

# Include Directories:
target_include_directories(flakkari_network PRIVATE ${CMAKE_SOURCE_DIR}/Flakkari)
target_include_directories(flakkari_network PRIVATE ${singleton_SOURCE_DIR})

# Link Libraries:
target_link_libraries(flakkari_network PRIVATE nlohmann_json::nlohmann_json)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include "../../../Math/Vector.hpp"
#include <string>

#include "Network/Packed.hpp"

namespace Flakkari::Engine::ECS::Components::_2D {
PACKED_START

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-11
** Created: 2024-01-11
** File description:
** Control
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-06
** Created: 2024-01-06
** File description:
** Movable
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-14
** Created: 2024-01-14
** File description:
** RigidBody
*/
Expand All @@ -12,8 +12,6 @@

#include "../../../Math/Vector.hpp"

#include "Network/Packed.hpp"

namespace Flakkari::Engine::ECS::Components::_2D {
PACKED_START

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-06
** Created: 2024-01-06
** File description:
** Transform
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-06
** Created: 2024-01-06
** File description:
** Child
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-13
** Created: 2024-01-13
** File description:
** Evolve
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-14
** Created: 2024-01-14
** File description:
** Health
*/
Expand All @@ -12,7 +12,7 @@

#include <cstddef>

#include "Network/Packed.hpp"
#include "config.h.in"

namespace Flakkari::Engine::ECS::Components::Common {
PACKED_START
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include <cstdint>

#include "Network/Packed.hpp"
#include "config.h.in"

namespace Flakkari::Engine::ECS::Components::Common {
PACKED_START
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-14
** Created: 2024-01-14
** File description:
** Level
*/
Expand All @@ -13,7 +13,7 @@
#include <cstring>
#include <string>

#include "Network/Packed.hpp"
#include "config.h.in"

namespace Flakkari::Engine::ECS::Components::Common {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-14
** Created: 2024-01-14
** File description:
** NetworkEvent
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-06
** Created: 2024-01-06
** File description:
** Parent
*/
Expand All @@ -12,7 +12,7 @@

#include <cstddef>

#include "Network/Packed.hpp"
#include "config.h.in"

namespace Flakkari::Engine::ECS::Components::Common {
PACKED_START
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-14
** Created: 2024-01-14
** File description:
** Spawned
*/
Expand All @@ -13,7 +13,7 @@
#include <cstring>
#include <string>

#include "Network/Packed.hpp"
#include "config.h.in"

namespace Flakkari::Engine::ECS::Components::Common {
PACKED_START
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-06
** Created: 2024-01-06
** File description:
** Tag
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-14
** Created: 2024-01-14
** File description:
** Weapon
*/
Expand All @@ -13,7 +13,7 @@
#include <cstring>
#include <string>

#include "Network/Packed.hpp"
#include "config.h.in"

namespace Flakkari::Engine::ECS::Components::Common {
PACKED_START
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* https://opensource.org/licenses/MIT
* © 2023 @MasterLaplace
* @version 0.3.0
* @date 2023-01-06
* @date 2024-01-06
**************************************************************************/

#ifndef FLAKKARI_COMPONENTS2D_HPP_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* https://opensource.org/licenses/MIT
* © 2023 @MasterLaplace
* @version 0.3.0
* @date 2023-01-06
* @date 2024-01-06
**************************************************************************/

#ifndef FLAKKARI_COMPONENTSCOMMON_HPP_
Expand Down
2 changes: 1 addition & 1 deletion Flakkari/Engine/EntityComponentSystem/Entity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* https://opensource.org/licenses/MIT
* © 2023 @MasterLaplace
* @version 0.3.0
* @date 2023-01-05
* @date 2024-01-05
**************************************************************************/

#ifndef FLAKKARI_ENTITY_HPP_
Expand Down
2 changes: 1 addition & 1 deletion Flakkari/Engine/EntityComponentSystem/Registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-05
** Created: 2024-01-05
** File description:
** Registry
*/
Expand Down
2 changes: 1 addition & 1 deletion Flakkari/Engine/EntityComponentSystem/Registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* https://opensource.org/licenses/MIT
* © 2023 @MasterLaplace
* @version 0.3.0
* @date 2023-01-05
* @date 2024-01-05
**************************************************************************/

#ifndef FLAKKARI_REGISTRY_HPP_
Expand Down
2 changes: 1 addition & 1 deletion Flakkari/Engine/EntityComponentSystem/SparseArrays.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* https://opensource.org/licenses/MIT
* © 2023 @MasterLaplace
* @version 0.3.0
* @date 2023-01-05
* @date 2024-01-05
**************************************************************************/

#ifndef FLAKKARI_SPARSEARRAYS_HPP_
Expand Down
2 changes: 1 addition & 1 deletion Flakkari/Engine/EntityComponentSystem/Systems/Systems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2024
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-06
** Created: 2024-01-06
** File description:
** Systems
*/
Expand Down
2 changes: 1 addition & 1 deletion Flakkari/Engine/EntityComponentSystem/Systems/Systems.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* https://opensource.org/licenses/MIT
* © 2023 @MasterLaplace
* @version 0.3.0
* @date 2023-01-06
* @date 2024-01-06
**************************************************************************/

#ifndef FLAKKARI_SYSTEMS_HPP_
Expand Down
2 changes: 1 addition & 1 deletion Flakkari/Engine/Math/Vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
** EPITECH PROJECT, 2023
** Title: Flakkari
** Author: MasterLaplace
** Created: 2023-01-05
** Created: 2024-01-05
** File description:
** Vector
*/
Expand Down
4 changes: 2 additions & 2 deletions Flakkari/Engine/Math/Vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* https://opensource.org/licenses/MIT
* © 2023 @MasterLaplace
* @version 0.3.0
* @date 2023-01-05
* @date 2024-01-05
**************************************************************************/

#ifndef FLAKKARI_VECTOR_HPP_
Expand All @@ -21,7 +21,7 @@
#include <cmath>
#include <iostream>

#include "Network/Packed.hpp"
#include "config.h.in"

namespace Flakkari::Engine::Math {

Expand Down
37 changes: 24 additions & 13 deletions Flakkari/Logger/Logger.hpp
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
/*
** EPITECH PROJECT, 2023
** Flakkari
** File description:
** Flakkari::Logger
*/
/**************************************************************************
* Flakkari Library v0.3.0
*
* Flakkari Library is a C++ Library for Network.
* @file Logger.hpp
* @brief Logger class header. Can be used to log messages.
*
* Flakkari Library is under MIT License.
* https://opensource.org/licenses/MIT
* © 2023 @MasterLaplace
* @version 0.3.0
* @date 2023-12-19
**************************************************************************/

#ifndef FLAKKARI_LOGGER_HPP_
#define FLAKKARI_LOGGER_HPP_

#include "config.h.in"

#include <chrono>
#include <ctime>
#include <iostream>
#include <string>

#define LOG_INFO 0
#define LOG_LOG 1
#define LOG_DEBUG 2
#define LOG_WARNING 3
#define LOG_ERROR 4
#define LOG_FATAL 5

#include <chrono>
#include <ctime>
#include <iostream>
#include <string>

#define FLAKKARI_LOG(level, message) Flakkari::Logger::log(level, message, __LINE__, __FILE__)
#define FLAKKARI_LOG_INFO(message) FLAKKARI_LOG(LOG_INFO, message)
#define FLAKKARI_LOG_LOG(message) FLAKKARI_LOG(LOG_LOG, message)
Expand All @@ -28,7 +37,7 @@
#define FLAKKARI_LOG_ERROR(message) FLAKKARI_LOG(LOG_ERROR, message)
#define FLAKKARI_LOG_FATAL(message) FLAKKARI_LOG(LOG_FATAL, message)

#ifdef _WIN32
#ifdef FLAKKARI_SYSTEM_WINDOWS
# define STD_ERROR \
[]() -> std::string { \
char buffer[256]; \
Expand All @@ -42,7 +51,7 @@
# define SPECIAL_ERROR STD_ERROR
#endif

#if _WIN32
#ifdef FLAKKARI_SYSTEM_WINDOWS
# define WIN32_LEAN_AND_MEAN
# define _WINSOCK_DEPRECATED_NO_WARNINGS
# define _CRT_SECURE_NO_WARNINGS
Expand Down Expand Up @@ -86,6 +95,7 @@
#endif

namespace Flakkari {

class Logger {
public:
enum class Mode {
Expand All @@ -101,6 +111,7 @@ class Logger {
static void log(int level, std::string message, int line, std::string file = "") noexcept;
static void log(int level, std::string message) noexcept;
};

} /* namespace Flakkari */

#endif /* !FLAKKARI_LOGGER_HPP_ */
Loading

0 comments on commit 1936628

Please sign in to comment.