Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,274 changes: 635 additions & 639 deletions Managed/PluginInstaller/PluginInstaller/Program.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace UnrealEngine.Runtime
// Engine\Source\Runtime\Core\Public\Math\Axis.h

/// <summary>Generic axis enum (mirrored for property use in Object.h)</summary>
[UEnum, UMetaPath("/Script/CoreUObject.EAxis")]
[UEnum, UMetaPath("/Script/CoreUObject.Axis")]
public enum EAxis
{
None = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ public FObjectInitializer DoNotCreateDefaultSubobject(string subobjectName)
/// <summary>
/// Internal use only, checks if the override is legal and if not deal with error messages
/// </summary>
public bool IslegalOverride(FName componentName, UClass derivedComponentClass, UClass baseComponentClass)
{
return Native_FObjectInitializer.IslegalOverride(NativeObjectInitializer, ref componentName,
derivedComponentClass == null ? IntPtr.Zero : derivedComponentClass.Address,
baseComponentClass == null ? IntPtr.Zero : baseComponentClass.Address);
}
//public bool IslegalOverride(FName componentName, UClass derivedComponentClass, UClass baseComponentClass)
//{
// return Native_FObjectInitializer.IslegalOverride(NativeObjectInitializer, ref componentName,
// derivedComponentClass == null ? IntPtr.Zero : derivedComponentClass.Address,
// baseComponentClass == null ? IntPtr.Zero : baseComponentClass.Address);
//}

public void FinalizeSubobjectClassInitialization()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ internal FSubsystemCollection(IntPtr collectionAddress)
/// <summary>
/// Initialize the collection of systems, systems will be created and initialized.
/// </summary>
public void Initialize()
public void Initialize(UObject NewOuter)
{
Native_FSubsystemCollection.Initialize(collectionAddress);
Native_FSubsystemCollection.Initialize(collectionAddress, NewOuter == null ? IntPtr.Zero : NewOuter.Address);
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static class Native_FObjectInitializer
public delegate IntPtr Del_CreateDefaultSubobject(IntPtr instance, IntPtr outer, ref FName subobjectFName, IntPtr returnType, IntPtr classToCreateByDefault, csbool isRequired, csbool isTransient);
public delegate IntPtr Del_DoNotCreateDefaultSubobject(IntPtr instance, ref FName subobjectName);
public delegate IntPtr Del_DoNotCreateDefaultSubobjectStr(IntPtr instance, ref FScriptArray subobjectName);
public delegate csbool Del_IslegalOverride(IntPtr instance, ref FName componentName, IntPtr derivedComponentClass, IntPtr baseComponentClass);
//public delegate csbool Del_IslegalOverride(IntPtr instance, ref FName componentName, IntPtr derivedComponentClass, IntPtr baseComponentClass);
public delegate void Del_FinalizeSubobjectClassInitialization(IntPtr instance);
public delegate void Del_AssertIfInConstructor(IntPtr outer, ref FScriptArray errorMessage);
public delegate IntPtr Del_Get();
Expand All @@ -28,7 +28,7 @@ static class Native_FObjectInitializer
public static Del_CreateDefaultSubobject CreateDefaultSubobject;
public static Del_DoNotCreateDefaultSubobject DoNotCreateDefaultSubobject;
public static Del_DoNotCreateDefaultSubobjectStr DoNotCreateDefaultSubobjectStr;
public static Del_IslegalOverride IslegalOverride;
//public static Del_IslegalOverride IslegalOverride;
public static Del_FinalizeSubobjectClassInitialization FinalizeSubobjectClassInitialization;
public static Del_AssertIfInConstructor AssertIfInConstructor;
public static Del_Get Get;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace UnrealEngine.Runtime.Native
{
public static class Native_FSubsystemCollection
{
public delegate void Del_Initialize(IntPtr instance);
public delegate void Del_Initialize(IntPtr instance, IntPtr NewOuter);
public delegate void Del_Deinitialize(IntPtr instance);
public delegate csbool Del_InitializeDependency(IntPtr instance, IntPtr subsystemClass);
public delegate IntPtr Del_GetSubsystem(IntPtr instance, IntPtr subsystemClass);
Expand Down
1 change: 1 addition & 0 deletions Settings/ModulesWhitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Sequencer
Slate
SlateCore
SourceControl
StaticMeshDescription
TimeManagement
UMG
UMGEditor
Expand Down
2 changes: 1 addition & 1 deletion Source/USharp/Private/ExportedFunctions/Export_FApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CSEXPORT void CSCONV Export_FApp_GetBranchName(FString& result)

CSEXPORT int32/*EBuildConfigurations::Type*/ CSCONV Export_FApp_GetBuildConfiguration()
{
return FApp::GetBuildConfiguration();
return (int32)FApp::GetBuildConfiguration();
}

CSEXPORT void CSCONV Export_FApp_GetBuildVersion(FString& result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ CSEXPORT FObjectInitializer const& CSCONV Export_FObjectInitializer_DoNotCreateD
return instance->DoNotCreateDefaultSubobject(*SubobjectName);
}

CSEXPORT csbool CSCONV Export_FObjectInitializer_IslegalOverride(FObjectInitializer* instance, const FName& InComponentName, class UClass *DerivedComponentClass, class UClass *BaseComponentClass)
{
return instance->IslegalOverride(InComponentName, DerivedComponentClass, BaseComponentClass);
}
//CSEXPORT csbool CSCONV Export_FObjectInitializer_IslegalOverride(FObjectInitializer* instance, const FName& InComponentName, class UClass *DerivedComponentClass, class UClass *BaseComponentClass)
//{
// return instance->IslegalOverride(InComponentName, DerivedComponentClass, BaseComponentClass);
//}

CSEXPORT void CSCONV Export_FObjectInitializer_FinalizeSubobjectClassInitialization(FObjectInitializer* instance)
{
Expand All @@ -62,7 +62,7 @@ CSEXPORT void CSCONV Export_FObjectInitializer(RegisterFunc registerFunc)
REGISTER_FUNC(Export_FObjectInitializer_CreateDefaultSubobject);
REGISTER_FUNC(Export_FObjectInitializer_DoNotCreateDefaultSubobject);
REGISTER_FUNC(Export_FObjectInitializer_DoNotCreateDefaultSubobjectStr);
REGISTER_FUNC(Export_FObjectInitializer_IslegalOverride);
//REGISTER_FUNC(Export_FObjectInitializer_IslegalOverride);
REGISTER_FUNC(Export_FObjectInitializer_FinalizeSubobjectClassInitialization);
REGISTER_FUNC(Export_FObjectInitializer_AssertIfInConstructor);
REGISTER_FUNC(Export_FObjectInitializer_Get);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CSEXPORT void CSCONV Export_FSubsystemCollection_Initialize(FSubsystemCollectionBase& instance)
CSEXPORT void CSCONV Export_FSubsystemCollection_Initialize(FSubsystemCollectionBase& instance, UObject* NewOuter)
{
instance.Initialize();
instance.Initialize(NewOuter);
}

CSEXPORT void CSCONV Export_FSubsystemCollection_Deinitialize(FSubsystemCollectionBase& instance)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ CSEXPORT csbool CSCONV Export_ICppStructOps_HasGetTypeHash(UScriptStruct::ICppSt

CSEXPORT uint32 CSCONV Export_ICppStructOps_GetTypeHash(UScriptStruct::ICppStructOps* instance, const void* Src)
{
return instance->GetTypeHash(Src);
return instance->GetStructTypeHash(Src);
}

CSEXPORT uint64 CSCONV Export_ICppStructOps_GetComputedPropertyFlags(UScriptStruct::ICppStructOps* instance)
Expand Down
8 changes: 4 additions & 4 deletions Source/USharp/Private/ExportedFunctions/Export_UField.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@ CSEXPORT csbool CSCONV Export_UField_GetBoolMetaDataF(UField* instance, const FN

CSEXPORT int32 CSCONV Export_UField_GetINTMetaData(UField* instance, const FString& Key)
{
return instance->GetINTMetaData(*Key);
return instance->GetIntMetaData(*Key);
}

CSEXPORT int32 CSCONV Export_UField_GetINTMetaDataF(UField* instance, const FName& Key)
{
return instance->GetINTMetaData(Key);
return instance->GetIntMetaData(Key);
}

CSEXPORT float CSCONV Export_UField_GetFLOATMetaData(UField* instance, const FString& Key)
{
return instance->GetFLOATMetaData(*Key);
return instance->GetFloatMetaData(*Key);
}

CSEXPORT float CSCONV Export_UField_GetFLOATMetaDataF(UField* instance, const FName& Key)
{
return instance->GetFLOATMetaData(Key);
return instance->GetFloatMetaData(Key);
}

CSEXPORT UClass* CSCONV Export_UField_GetClassMetaData(UField* instance, const FString& Key)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ void FSharpHotReloadClassReinstancer::CollectChangedProperties(FCDOPropertyConta
// Delegates
case (BaseCastFlags | CASTCLASS_UDelegateProperty):
case (BaseCastFlags | CASTCLASS_UMulticastDelegateProperty):
case (BaseCastFlags | CASTCLASS_UMulticastDelegateProperty | CASTCLASS_UMulticastSparseDelegateProperty):
{
void* OldValuePtr = OldProperty->ContainerPtrToValuePtr<void>(Container.OldPtr);
void* NewValuePtr = NewProperty->ContainerPtrToValuePtr<void>(Container.NewPtr);
Expand Down
14 changes: 8 additions & 6 deletions Source/USharpEditor/Private/SharpTemplateProjectDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

void USharpTemplateProjectDefs::RegisterTemplate()
{
FGameProjectGenerationModule::Get().RegisterTemplateCategory(
TEXT("USharp"),
LOCTEXT("USharpCategory_Name", "C#"),
LOCTEXT("USharpCategory_Description", "C# (USharp)"),
FEditorStyle::GetBrush("GameProjectDialog.BlueprintIcon"),
FEditorStyle::GetBrush("GameProjectDialog.BlueprintImage"));
//Remove This Line For UE_4.24.
//Initialize Inside USharp/Templates/TemplateCategories.ini file instead.
//FGameProjectGenerationModule::Get().RegisterTemplateCategory(
// TEXT("USharp"),
// LOCTEXT("USharpCategory_Name", "C#"),
// LOCTEXT("USharpCategory_Description", "C# (USharp)"),
// FEditorStyle::GetBrush("GameProjectDialog.BlueprintIcon"),
// FEditorStyle::GetBrush("GameProjectDialog.BlueprintImage"));

// A seperate tab for "C#/C++" may be useful at a later date when there enough templates to demand it
/*FGameProjectGenerationModule::Get().RegisterTemplateCategory(
Expand Down
2 changes: 2 additions & 0 deletions Templates/TemplateCategories.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[/Script/GameProjectGeneration.TemplateCategories]
Categories=(Key="USharp", LocalizedDisplayNames=((Language="en", Text="C#")), LocalizedDescriptions=((Language="en", Text="C# (USharp)")), Icon="GameProjectDialog.BlueprintIcon", Image="GameProjectDialog.BlueprintImage", IsMajorCategory=false)