Skip to content

Commit

Permalink
fix: Fix other stuff related to restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Oct 15, 2024
1 parent 4ba378a commit c0cd6fd
Show file tree
Hide file tree
Showing 17 changed files with 11 additions and 8 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
#include "FINUtils.h"
#include "Components/OverlaySlot.h"
#include "UI/FGGameUI.h"
#include "UObject/ConstructorHelpers.h"
#include "Widgets/Input/SEditableTextBox.h"

const FName AFINBlueprintHologram_List_NameColumn = FName("Name");
const FName AFINBlueprintHologram_List_ValueColumn = FName("Value");

AFINBlueprintHologram::AFINBlueprintHologram() {
PopupClass = ConstructorHelpers::FClassFinder<UFGPopupWidget>(TEXT("/Game/FactoryGame/Interface/UI/InGame/Widget_Popup.Widget_Popup_C")).Class;
PopupContentClass = ConstructorHelpers::FClassFinder<UFINBlueprintParameterPopup>(TEXT("/FicsItNetworks/UI/Widget_FIN_BlueprintParameterPopup.Widget_FIN_BlueprintParameterPopup_C")).Class;
PopupContentClass = ConstructorHelpers::FClassFinder<UFINBlueprintParameterPopup>(TEXT("/FicsItNetworks/UI/Misc/BPW_FIN_BlueprintParameterPopup.BPW_FIN_BlueprintParameterPopup_C")).Class;
}

void AFINBlueprintHologram::ShowPropertyDialog() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "ConstructorHelpers.h"

UFINMCPAdvConnector::UFINMCPAdvConnector() {
static ConstructorHelpers::FClassFinder<UFGBuildingDescriptor> ThinNetworkCableClass(TEXT("/FicsItNetworks/Buildings/Network/ThinNetworkCable/BD_ThinNetworkCable.BD_ThinNetworkCable_C"));
static ConstructorHelpers::FClassFinder<UFGBuildingDescriptor> ThinNetworkCableClass(TEXT("/FicsItNetworks/Buildings/Network/ThinNetworkCable/Desc_ThinNetworkCable.Desc_ThinNetworkCable_C"));

AllowedCableConnections.Empty();
AllowedCableConnections.Add(ThinNetworkCableClass.Class);
Expand Down
2 changes: 1 addition & 1 deletion Source/FicsItNetworksCircuit/Private/FINMCPConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "ConstructorHelpers.h"

UFINMCPConnector::UFINMCPConnector() {
static ConstructorHelpers::FClassFinder<UFGBuildingDescriptor> ThinNetworkCableClass(TEXT("/FicsItNetworks/Buildings/Network/ThinNetworkCable/BD_ThinNetworkCable.BD_ThinNetworkCable_C"));
static ConstructorHelpers::FClassFinder<UFGBuildingDescriptor> ThinNetworkCableClass(TEXT("/FicsItNetworks/Buildings/Network/ThinNetworkCable/Desc_ThinNetworkCable.Desc_ThinNetworkCable_C"));

AllowedCableConnections.Empty();
AllowedCableConnections.Add(ThinNetworkCableClass.Class);
Expand Down
2 changes: 1 addition & 1 deletion Source/FicsItReflection/Private/FIRSubsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ AFIRSubsystem* AFIRSubsystem::GetReflectionSubsystem(UObject* WorldContext) {
#endif
UWorld* WorldObject = GEngine->GetWorldFromContextObjectChecked(WorldContext);
USubsystemActorManager* SubsystemActorManager = WorldObject->GetSubsystem<USubsystemActorManager>();
check(SubsystemActorManager);
fgcheck(SubsystemActorManager);
return SubsystemActorManager->GetSubsystemActor<AFIRSubsystem>();
}

Expand Down
2 changes: 1 addition & 1 deletion Source/FicsItReflection/Private/FicsItReflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void FFicsItReflectionModule::StartupModule() {
redirects.Add(FCoreRedirect{ECoreRedirectFlags::Type_Class, TEXT("/Script/FicsItNetworks.FINArrayProperty"), TEXT("/Script/FicsItReflection.FIRArrayProperty")});
redirects.Add(FCoreRedirect{ECoreRedirectFlags::Type_Class, TEXT("/Script/FicsItNetworks.FINReflectionSource"), TEXT("/Script/FicsItReflection.FIRSource")});
redirects.Add(FCoreRedirect{ECoreRedirectFlags::Type_Class, TEXT("/Script/FicsItNetworks.FINStaticReflectionSource"), TEXT("/Script/FicsItReflection.FIRSourceStatic")});
redirects.Add(FCoreRedirect{ECoreRedirectFlags::Type_Enum, TEXT("/Script/FicsItNetworks.FINReflectionMetaRuntimeState "), TEXT("/Script/FicsItReflection.FIRMetaRuntimeState")});
redirects.Add(FCoreRedirect{ECoreRedirectFlags::Type_Enum, TEXT("/Script/FicsItNetworks.EFINReflectionMetaRuntimeState "), TEXT("/Script/FicsItReflection.EFIRMetaRuntimeState")});
redirects.Add(FCoreRedirect{ECoreRedirectFlags::Type_Struct, TEXT("/Script/FicsItNetworks.FINReflectionBaseMeta"), TEXT("/Script/FicsItReflection.FIRBaseMeta")});
redirects.Add(FCoreRedirect{ECoreRedirectFlags::Type_Struct, TEXT("/Script/FicsItNetworks.FINReflectionPropertyMeta"), TEXT("/Script/FicsItReflection.FIRPropertyMeta")});
redirects.Add(FCoreRedirect{ECoreRedirectFlags::Type_Struct, TEXT("/Script/FicsItNetworks.FINReflectionFunctionParameterMeta"), TEXT("/Script/FicsItReflection.FIRFunctionParameterMeta")});
Expand Down
8 changes: 5 additions & 3 deletions Source/FicsItReflection/Public/FIRModModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ class FICSITREFLECTION_API UFIRGameInstanceModule : public UGameInstanceModule {
virtual void DispatchLifecycleEvent(ELifecyclePhase Phase) override {
Super::DispatchLifecycleEvent(Phase);

FFIRGlobalRegisterHelper::Register();
if (Phase == ELifecyclePhase::CONSTRUCTION) {
FFIRGlobalRegisterHelper::Register();

FFicsItReflectionModule::Get().PopulateSources();
FFicsItReflectionModule::Get().LoadAllTypes();
FFicsItReflectionModule::Get().PopulateSources();
FFicsItReflectionModule::Get().LoadAllTypes();
}
}
// End UGameInstanceModule
};

0 comments on commit c0cd6fd

Please sign in to comment.