Example #1
0
        public static void Run()
        {
            UDelegateFunction unrealFunction = UFunction.GetDelegateSignature <Test_SimpleMulticastDelegate>();

            Tests.Assert(unrealFunction != null, "Test_SimpleMulticastDelegate");

            Tests.AssertProperty <UUInt64Property>(unrealFunction, "param1", EPropertyFlags.Parm);
            Tests.AssertProperty <UStrProperty>(unrealFunction, "param2", EPropertyFlags.Parm);
        }
Example #2
0
        public static void Run()
        {
            UDelegateFunction unrealFunction = UFunction.GetDelegateSignature <Test_SimpleDelegate>();

            Tests.Assert(unrealFunction != null, "Test_SimpleDelegate");

            Tests.AssertProperty <USoftClassProperty>(unrealFunction, UFunction.ReturnValuePropName, EPropertyFlags.Parm | EPropertyFlags.OutParm | EPropertyFlags.ReturnParm);
            Tests.AssertProperty <UIntProperty>(unrealFunction, "param1", EPropertyFlags.Parm);
            Tests.AssertProperty <UStrProperty>(unrealFunction, "param2", EPropertyFlags.Parm);
            Tests.AssertProperty <UDoubleProperty>(unrealFunction, "param3", EPropertyFlags.Parm | EPropertyFlags.OutParm | EPropertyFlags.ReferenceParm);
            Tests.AssertProperty <UStrProperty>(unrealFunction, "param4", EPropertyFlags.Parm | EPropertyFlags.OutParm);
        }