mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-06 15:48:48 +00:00
Fix compling errors on various platforms/consoles
- Fixed some include paths case sensitive - Fixed CogImguiInputHelper.h including itself - Added missing includes - Added missing forward declarations - Fixed enums forward declarations - Fixed "TCHAR_TO_ANSI" and const char* formatting issues - Fixed "sscanf" on Linux
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#include "GameplayEffect.h"
|
||||
#include "Net/Core/PushModel/PushModel.h"
|
||||
#include "Net/UnrealNetwork.h"
|
||||
#include "GameFramework/PlayerController.h"
|
||||
#include "Engine/World.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
ACogAbilityReplicator* ACogAbilityReplicator::Spawn(APlayerController* Controller)
|
||||
|
||||
@@ -212,11 +212,11 @@ void FCogAbilityWindow_Abilities::RenderAbilitiesTable(UAbilitySystemComponent&
|
||||
continue;
|
||||
}
|
||||
|
||||
const char* AbilityName = TCHAR_TO_ANSI(*GetAbilityName(Ability));
|
||||
if (Filter.PassFilter(AbilityName) == false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
const auto AbilityName = StringCast<ANSICHAR>(*GetAbilityName(Ability));
|
||||
if (Filter.PassFilter(AbilityName.Get()) == false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
FitleredAbilities.Add(Spec);
|
||||
}
|
||||
|
||||
@@ -207,9 +207,9 @@ void FCogAbilityWindow_Attributes::RenderContent()
|
||||
continue;
|
||||
}
|
||||
|
||||
const char* AttributeName = TCHAR_TO_ANSI(*Attribute.GetName());
|
||||
const auto AttributeName = StringCast<ANSICHAR>(*Attribute.GetName());
|
||||
|
||||
if (Filter.PassFilter(AttributeName) == false)
|
||||
if (Filter.PassFilter(AttributeName.Get()) == false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -233,7 +233,7 @@ void FCogAbilityWindow_Attributes::RenderContent()
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("");
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Selectable(AttributeName, Selected == Index, ImGuiSelectableFlags_SpanAllColumns))
|
||||
if (ImGui::Selectable(AttributeName.Get(), Selected == Index, ImGuiSelectableFlags_SpanAllColumns))
|
||||
{
|
||||
Selected = Index;
|
||||
}
|
||||
|
||||
@@ -187,8 +187,8 @@ void FCogAbilityWindow_Effects::RenderEffectRow(const UAbilitySystemComponent& A
|
||||
const FActiveGameplayEffect& ActiveEffect = *ActiveEffectPtr;
|
||||
const UGameplayEffect& Effect = *EffectPtr;
|
||||
|
||||
const char* EffectName = TCHAR_TO_ANSI(*GetEffectName(Effect));
|
||||
if (Filter.PassFilter(EffectName) == false)
|
||||
const auto EffectName = StringCast<ANSICHAR>(*GetEffectName(Effect));
|
||||
if (Filter.PassFilter(EffectName.Get()) == false)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -203,7 +203,7 @@ void FCogAbilityWindow_Effects::RenderEffectRow(const UAbilitySystemComponent& A
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, FCogImguiHelper::ToImVec4(AlignmentConfig->GetEffectColor(Asset, Effect)));
|
||||
|
||||
if (ImGui::Selectable(EffectName, Selected == Index, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap | ImGuiSelectableFlags_AllowDoubleClick))
|
||||
if (ImGui::Selectable(EffectName.Get(), Selected == Index, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap | ImGuiSelectableFlags_AllowDoubleClick))
|
||||
{
|
||||
Selected = Index;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
class UAbilitySystemComponent;
|
||||
class UCogAbilityDataAsset;
|
||||
class UGameplayEffect;
|
||||
namespace EGameplayModOp { enum Type; };
|
||||
namespace EGameplayModOp { enum Type : int; };
|
||||
struct FGameplayAttribute;
|
||||
struct FGameplayModifierInfo;
|
||||
struct FModifierSpec;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
class UCogAbilityDataAsset;
|
||||
class UGameplayEffect;
|
||||
namespace EGameplayModOp { enum Type; }
|
||||
namespace EGameplayModOp { enum Type : int; }
|
||||
struct FGameplayTagContainer;
|
||||
|
||||
class COGABILITY_API FCogAbilityHelper
|
||||
|
||||
@@ -13,7 +13,7 @@ class UCogAbilityConfig_Alignment;
|
||||
class UCogAbilityConfig_Effects;
|
||||
class UCogAbilityDataAsset;
|
||||
class UGameplayEffect;
|
||||
namespace EGameplayModOp { enum Type; };
|
||||
namespace EGameplayModOp { enum Type : int; };
|
||||
struct FActiveGameplayEffect;
|
||||
struct FGameplayModifierInfo;
|
||||
struct FModifierSpec;
|
||||
|
||||
Reference in New Issue
Block a user