More actor and UObject progress
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user