示例#1
0
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.ExposedPropertyResolver o;
         o = new UnityEngine.ExposedPropertyResolver();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
 internal static Object ResolveReferenceInternal(IntPtr ptr, PropertyName name, out bool isValid)
 {
     if (ptr == IntPtr.Zero)
     {
         throw new ArgumentNullException("Argument \"ptr\" can't be null.");
     }
     return(ExposedPropertyResolver.ResolveReferenceBindingsInternal(ptr, name, out isValid));
 }
示例#3
0
 static public int ctor_s(IntPtr l)
 {
     try {
         UnityEngine.ExposedPropertyResolver o;
         o = new UnityEngine.ExposedPropertyResolver();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#4
0
        public T Resolve(ExposedPropertyResolver resolver)
        {
            bool   flag;
            Object @object = ExposedPropertyResolver.ResolveReferenceInternal(resolver.table, this.exposedName, out flag);
            T      result;

            if (flag)
            {
                result = (@object as T);
            }
            else
            {
                result = (this.defaultValue as T);
            }
            return(result);
        }
 internal static Object ResolveReferenceInternal(IntPtr ptr, PropertyName name, out bool isValid)
 {
     return(ExposedPropertyResolver.INTERNAL_CALL_ResolveReferenceInternal(ptr, ref name, out isValid));
 }
示例#6
0
 private static Object ResolveReferenceBindingsInternal(IntPtr ptr, PropertyName name, out bool isValid)
 {
     return(ExposedPropertyResolver.ResolveReferenceBindingsInternal_Injected(ptr, ref name, out isValid));
 }