Skip to content

Commit

Permalink
Merge pull request #23 from X-R-G-B/refactor/RB-43-refactor-system-ma…
Browse files Browse the repository at this point in the history
…nagers-in-one

Refactor/rb 43 refactor system managers in one
  • Loading branch information
TTENSHII authored Sep 26, 2023
2 parents 75feba0 + 6b7deb4 commit 2b6ceb4
Show file tree
Hide file tree
Showing 28 changed files with 384 additions and 553 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,13 @@ if(CLANG_TIDY_EXE)
set_target_properties(${PROJECT_NAME_CLIENT} PROPERTIES
VS_GLOBAL_RunCodeAnalysis true
VS_GLOBAL_EnableClangTidyCodeAnalysis true
VS_GLOBAL_ClangTidyChecks "-*,clang-diagnostic-*,clang-analyzer-*,-*,clang-analyzer-*,concurrency-*,cppcoreguidelines-*,modernize-*,portability-*,readability-*,-readability-identifier-length,-modernize-use-trailing-return-type"
)
set_target_properties(${PROJECT_NAME_SERVER} PROPERTIES
VS_GLOBAL_RunCodeAnalysis true
VS_GLOBAL_EnableClangTidyCodeAnalysis true
VS_GLOBAL_ClangTidyChecks "-*,clang-diagnostic-*,clang-analyzer-*,-*,clang-analyzer-*,concurrency-*,cppcoreguidelines-*,modernize-*,portability-*,readability-*,-readability-identifier-length,-modernize-use-trailing-return-type"
)
else()
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE}" "--fix" "--fix-notes" "--fix-errors" "-header-filter=(src/ECS/)|(src/Client/)|(src/Server/)" "-checks=-*,clang-diagnostic-*,clang-analyzer-*,-*,clang-analyzer-*,concurrency-*,cppcoreguidelines-*,modernize-*,portability-*,readability-*,-readability-identifier-length,-modernize-use-trailing-return-type")
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE}" "--fix" "--fix-notes" "--fix-errors")
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}")
endif()
endif()
Expand Down
1 change: 1 addition & 0 deletions src/Client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ target_sources(
)

add_subdirectory(Systems)
add_subdirectory(EventManager)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#pragma once

#include <list>
#include <vector>

class EventManager {
public:
Expand All @@ -21,5 +21,5 @@ class EventManager {
// NOLINTBEGIN(cppcoreguidelines-avoid-non-const-global-variables)
static EventManager instance;
// NOLINTEND(cppcoreguidelines-avoid-non-const-global-variables)
std::list<int> _activeEvents;
std::vector<int> _activeEvents;
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
#pragma once

#include <array>
#include <list>
#include <vector>
#include "raylib.h"

namespace Events {
static const auto events = {
static constexpr auto events = {
KEY_LEFT,
KEY_RIGHT,
KEY_UP,
Expand Down
2 changes: 0 additions & 2 deletions src/Client/Systems/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ target_sources(
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/ClientSystems.cpp
)

add_subdirectory(Managers)
Loading

0 comments on commit 2b6ceb4

Please sign in to comment.