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.CullingGroup o;
         o = new UnityEngine.CullingGroup();
         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
 }
 static public int SetBoundingSpheres(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.CullingGroup     self = (UnityEngine.CullingGroup)checkSelf(l);
         UnityEngine.BoundingSphere[] a1;
         checkArray(l, 2, out a1);
         self.SetBoundingSpheres(a1);
         pushValue(l, true);
         return(1);
     }
     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
 }
 static public int set_onStateChanged(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         UnityEngine.CullingGroup.StateChanged v;
         int op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.onStateChanged = v;
         }
         else if (op == 1)
         {
             self.onStateChanged += v;
         }
         else if (op == 2)
         {
             self.onStateChanged -= v;
         }
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_targetCamera(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.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         UnityEngine.Camera       v;
         checkType(l, 2, out v);
         self.targetCamera = v;
         pushValue(l, true);
         return(1);
     }
     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
 }
 static public int GetDistance(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.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         System.Int32             a1;
         checkType(l, 2, out a1);
         var ret = self.GetDistance(a1);
         pushValue(l, true);
         pushValue(l, ret);
         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
 }
 static public int SetDistanceReferencePoint(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.Transform)))
         {
             UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
             UnityEngine.Transform    a1;
             checkType(l, 2, out a1);
             self.SetDistanceReferencePoint(a1);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Vector3)))
         {
             UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
             UnityEngine.Vector3      a1;
             checkType(l, 2, out a1);
             self.SetDistanceReferencePoint(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function SetDistanceReferencePoint to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int QueryIndices(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(int), typeof(System.Int32[]), typeof(int)))
         {
             UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
             System.Int32             a1;
             checkType(l, 2, out a1);
             System.Int32[] a2;
             checkArray(l, 3, out a2);
             System.Int32 a3;
             checkType(l, 4, out a3);
             var ret = self.QueryIndices(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(bool), typeof(System.Int32[]), typeof(int)))
         {
             UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
             System.Boolean           a1;
             checkType(l, 2, out a1);
             System.Int32[] a2;
             checkArray(l, 3, out a2);
             System.Int32 a3;
             checkType(l, 4, out a3);
             var ret = self.QueryIndices(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 5)
         {
             UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
             System.Boolean           a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             System.Int32[] a3;
             checkArray(l, 4, out a3);
             System.Int32 a4;
             checkType(l, 5, out a4);
             var ret = self.QueryIndices(a1, a2, a3, a4);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function QueryIndices to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Dispose(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         self.Dispose();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_targetCamera(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.targetCamera);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#10
0
 private static void SendEvents(CullingGroup cullingGroup, IntPtr eventsPtr, int count)
 {
     throw new NotImplementedException();
     //CullingGroupEvent* ptr = (CullingGroupEvent*)eventsPtr.ToPointer();
     //if (cullingGroup.m_OnStateChanged != null)
     //{
     //	for (int i = 0; i < count; i++)
     //	{
     //		cullingGroup.m_OnStateChanged(*(CullingGroupEvent*)((byte*)ptr + i * sizeof(CullingGroupEvent)));
     //	}
     //}
 }
示例#11
0
        private unsafe static void SendEvents(CullingGroup cullingGroup, IntPtr eventsPtr, int count)
        {
            CullingGroupEvent *ptr = (CullingGroupEvent *)eventsPtr.ToPointer();

            if (cullingGroup.m_OnStateChanged != null)
            {
                for (int i = 0; i < count; i++)
                {
                    cullingGroup.m_OnStateChanged(ptr[i]);
                }
            }
        }
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.CullingGroup o;
			o=new UnityEngine.CullingGroup();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
示例#13
0
        private static unsafe void SendEvents(CullingGroup cullingGroup, IntPtr eventsPtr, int count)
        {
            CullingGroupEvent *pointer = (CullingGroupEvent *)eventsPtr.ToPointer();

            if (cullingGroup.m_OnStateChanged == null)
            {
                return;
            }
            for (int index = 0; index < count; ++index)
            {
                cullingGroup.m_OnStateChanged(pointer[index]);
            }
        }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup o;
         o = new UnityEngine.CullingGroup();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int SetBoundingSphereCount(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         System.Int32             a1;
         checkType(l, 2, out a1);
         self.SetBoundingSphereCount(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int SetBoundingSpheres(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup     self = (UnityEngine.CullingGroup)checkSelf(l);
         UnityEngine.BoundingSphere[] a1;
         checkArray(l, 2, out a1);
         self.SetBoundingSpheres(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_targetCamera(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         UnityEngine.Camera       v;
         checkType(l, 2, out v);
         self.targetCamera = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int EraseSwapBack(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         System.Int32             a1;
         checkType(l, 2, out a1);
         self.EraseSwapBack(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        unsafe private static void SendEvents(CullingGroup cullingGroup, IntPtr eventsPtr, int count)
        {
            CullingGroupEvent *events = (CullingGroupEvent *)eventsPtr.ToPointer();

            if (cullingGroup.m_OnStateChanged == null)
            {
                return;
            }

            for (int i = 0; i < count; ++i)
            {
                cullingGroup.m_OnStateChanged(events[i]);
            }
        }
 static public int set_enabled(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.enabled = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static void CullingGroup_targetCamera(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.CullingGroup _this = (UnityEngine.CullingGroup)vc.csObj;
         var result = _this.targetCamera;
         JSMgr.datax.setObject((int)JSApi.SetType.Rval, result);
     }
     else
     {
         UnityEngine.Camera       arg0  = (UnityEngine.Camera)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
         UnityEngine.CullingGroup _this = (UnityEngine.CullingGroup)vc.csObj;
         _this.targetCamera = arg0;
     }
 }
 static public int GetDistance(IntPtr l)
 {
     try {
         UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         System.Int32             a1;
         checkType(l, 2, out a1);
         var ret = self.GetDistance(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static void CullingGroup_enabled(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.CullingGroup _this = (UnityEngine.CullingGroup)vc.csObj;
         var result = _this.enabled;
         JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result));
     }
     else
     {
         System.Boolean           arg0  = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg);
         UnityEngine.CullingGroup _this = (UnityEngine.CullingGroup)vc.csObj;
         _this.enabled = arg0;
     }
 }
 static public int SetDistanceReferencePoint(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
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.Transform)))
         {
             UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
             UnityEngine.Transform    a1;
             checkType(l, 2, out a1);
             self.SetDistanceReferencePoint(a1);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Vector3)))
         {
             UnityEngine.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
             UnityEngine.Vector3      a1;
             checkType(l, 2, out a1);
             self.SetDistanceReferencePoint(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function SetDistanceReferencePoint to call");
         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
 }
 static public int set_onStateChanged(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.CullingGroup self = (UnityEngine.CullingGroup)checkSelf(l);
         UnityEngine.CullingGroup.StateChanged v;
         int op = checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.onStateChanged = v;
         }
         else if (op == 1)
         {
             self.onStateChanged += v;
         }
         else if (op == 2)
         {
             self.onStateChanged -= v;
         }
         pushValue(l, true);
         return(1);
     }
     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
 }
示例#26
0
        /// <summary>
        /// Read the data into the specified value.
        /// </summary>
        /// <param name="value">Value.</param>
        /// <param name="reader">Reader.</param>
        public override void ReadInto(object value, ISaveGameReader reader)
        {
            UnityEngine.CullingGroup cullingGroup = (UnityEngine.CullingGroup)value;
            foreach (string property in reader.Properties)
            {
                switch (property)
                {
                case "enabled":
                    cullingGroup.enabled = reader.ReadProperty <System.Boolean> ();
                    break;

                case "targetCamera":
                    if (cullingGroup.targetCamera == null)
                    {
                        cullingGroup.targetCamera = reader.ReadProperty <UnityEngine.Camera> ();
                    }
                    else
                    {
                        reader.ReadIntoProperty <UnityEngine.Camera> (cullingGroup.targetCamera);
                    }
                    break;
                }
            }
        }
 static void CullingGroup_onStateChanged(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.CullingGroup _this = (UnityEngine.CullingGroup)vc.csObj;
         var result = _this.onStateChanged;
         JSMgr.datax.setObject((int)JSApi.SetType.Rval, result);
     }
     else
     {
         UnityEngine.CullingGroup _this = (UnityEngine.CullingGroup)vc.csObj;
         _this.onStateChanged = JSDataExchangeMgr.GetJSArg <UnityEngine.CullingGroup.StateChanged>(() =>
         {
             if (JSApi.isFunctionS((int)JSApi.GetType.Arg))
             {
                 return(CullingGroup_onStateChanged_GetDelegate_member0_arg0(JSApi.getFunctionS((int)JSApi.GetType.Arg)));
             }
             else
             {
                 return((UnityEngine.CullingGroup.StateChanged)JSMgr.datax.getObject((int)JSApi.GetType.Arg));
             }
         });
     }
 }
示例#28
0
 private static extern void INTERNAL_CALL_SetDistanceReferencePoint(CullingGroup self, ref Vector3 point);
示例#29
0
 /// <summary>
 ///   <para>Set the reference point from which distance bands are measured.</para>
 /// </summary>
 /// <param name="point">A fixed point to measure the distance from.</param>
 /// <param name="transform">A transform to measure the distance from. The transform's position will be automatically tracked.</param>
 public void SetDistanceReferencePoint(Vector3 point)
 {
     CullingGroup.INTERNAL_CALL_SetDistanceReferencePoint(this, ref point);
 }
示例#30
0
 [RequiredByNativeCode]         // 0x00000001800D4E50-0x00000001800D4E60
 private static void SendEvents(CullingGroup cullingGroup, IntPtr eventsPtr, int count)
 {
 }                                                                                                 // 0x0000000180966810-0x0000000180966880
示例#31
0
 /// <summary>
 /// Read the data using the reader.
 /// </summary>
 /// <param name="reader">Reader.</param>
 public override object Read(ISaveGameReader reader)
 {
     UnityEngine.CullingGroup cullingGroup = new UnityEngine.CullingGroup();
     ReadInto(cullingGroup, reader);
     return(cullingGroup);
 }