diff --git a/.clangd b/.clangd new file mode 100644 index 0000000..207d7ff --- /dev/null +++ b/.clangd @@ -0,0 +1,29 @@ +# NOTE: replace /home/yes with your home folder, it won't recognize ~ as the home folder +# I also have no idea what most flags after Wno-prgma-pack does. i kinda just built it in visual studio then copied flags + +CompileFlags: + Compiler: clang-cl + Add: + - "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/um" + - "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/shared" + - "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/ucrt" + - "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/winrt" + - "-I/home/yes/msvc/Windows Kits/10/Include/10.0.22621.0/km" + - "-I/home/yes/msvc/VC/Tools/MSVC/14.43.34808/atlmfc/include/" + - "-I/home/yes/msvc/VC/Tools/MSVC/14.43.34808/include/" + - "-I../vendor" + - "/std:c++latest" + - "-ferror-limit=0" + - "-Wno-pragma-pack" + - "/permissive-" + - "/EHsc" + - "/MT" + - "/GS" + - "/Gy" + - "Gm-" + - "/D _UNICODE" + - "/D UNICODE" + - "/fp:precise" + - "/Zc:wchar_t" + - "/Zc:forScope" + - "/Zc:inline" diff --git a/Project Reboot 3.0/Actor.h b/Project Reboot 3.0/Actor.h index fceac71..04912ec 100644 --- a/Project Reboot 3.0/Actor.h +++ b/Project Reboot 3.0/Actor.h @@ -53,7 +53,7 @@ public: float& GetMinNetUpdateFrequency(); const AActor* GetNetOwner() const; void GetActorEyesViewPoint(FVector* OutLocation, FRotator* OutRotation) const; - AActor* GetClosestActor(UClass* ActorClass, float DistMax, std::function AdditionalCheck = [&](AActor*) { return true; }); + AActor* GetClosestActor(UClass* ActorClass, float DistMax, std::function AdditionalCheck = [](AActor*) { return true; }); bool IsRelevancyOwnerFor(const AActor* ReplicatedActor, const AActor* ActorOwner, const AActor* ConnectionActor) const { @@ -68,4 +68,4 @@ public: } static class UClass* StaticClass(); -}; \ No newline at end of file +}; diff --git a/Project Reboot 3.0/Pawn.h b/Project Reboot 3.0/Pawn.h index 0a10f6b..a19c50e 100644 --- a/Project Reboot 3.0/Pawn.h +++ b/Project Reboot 3.0/Pawn.h @@ -1,7 +1,7 @@ #pragma once #include "Actor.h" -#include "TSubClassOf.h" +#include "TSubclassOf.h" class APawn : public AActor { @@ -23,4 +23,4 @@ public: static auto AIControllerClassOffset = GetOffset("AIControllerClass"); return Get>(AIControllerClassOffset); } -}; \ No newline at end of file +}; diff --git a/Project Reboot 3.0/Set.h b/Project Reboot 3.0/Set.h index f400dd8..9521e62 100644 --- a/Project Reboot 3.0/Set.h +++ b/Project Reboot 3.0/Set.h @@ -36,7 +36,8 @@ template class TSet { private: - friend TSparseArray; + template + friend class TSparseArray; public: typedef TSetElement ElementType; @@ -217,4 +218,4 @@ public: mutable TInlineAllocator<1>::ForElementType Hash; mutable int32 HashSize; -}; */ \ No newline at end of file +}; */