More actor and UObject progress

This commit is contained in:
AeonLucid
2022-01-17 23:02:10 +01:00
parent fe97b7a145
commit 458bae0523
24 changed files with 421 additions and 18 deletions
@@ -0,0 +1,8 @@
using Prospect.Unreal.Core.Objects;
namespace Prospect.Unreal.Core.Properties;
public class UField : UObject
{
}
@@ -0,0 +1,37 @@
namespace Prospect.Unreal.Core.Properties;
public class UStruct : UField
{
private UStruct? _superStruct;
public bool IsChildOf(UStruct? someBase)
{
if (someBase == null)
{
return false;
}
var bOldResult = false;
for (var tempStruct = this; tempStruct != null; tempStruct = tempStruct.GetSuperStruct())
{
if (tempStruct == someBase)
{
bOldResult = true;
break;
}
}
return bOldResult;
}
public UStruct? GetSuperStruct()
{
return _superStruct;
}
public virtual void SetSuperStruct(UStruct newSuperStruct)
{
_superStruct = newSuperStruct;
}
}