Exemple #1
0
            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>());
            }
Exemple #2
0
        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");
        }