public async Task <UEProperty> GetValueProperty() { if (ObjMapProperty.Empty()) { ObjMapProperty = await Object.Cast <UMapProperty>(); } if (!ObjMapProperty.ValueProp.IsValid()) { return(new UEProperty()); } return((await ObjectsStore.GetByAddress(ObjMapProperty.ValueProp)).Cast <UEProperty>()); }
public static void AssertTMapProperty <TKey, TValue>(UStruct unrealStruct, string name) where TKey : UProperty where TValue : UProperty { UProperty prop = unrealStruct.FindPropertyByName(new FName(name)); Assert(prop != null, unrealStruct.GetName() + "." + name); UMapProperty mapProp = prop as UMapProperty; Assert(mapProp != null, unrealStruct.GetName() + "." + name); Assert(mapProp.KeyProp as TKey != null, unrealStruct.GetName() + "." + name + " TMap KeyProp"); Assert(mapProp.ValueProp as TValue != null, unrealStruct.GetName() + "." + name + " TMap ValueProp"); }