Ejemplo n.º 1
0
        private unsafe static JobHandle ScheduleCapsulecastBatch(ref JobsUtility.JobScheduleParameters parameters, void *commands, int commandLen, void *result, int resultLen, int minCommandsPerJob)
        {
            JobHandle result2;

            CapsulecastCommand.ScheduleCapsulecastBatch_Injected(ref parameters, commands, commandLen, result, resultLen, minCommandsPerJob, out result2);
            return(result2);
        }
Ejemplo n.º 2
0
        public static JobHandle ScheduleBatch(NativeArray <CapsulecastCommand> commands, NativeArray <RaycastHit> results, int minCommandsPerJob, JobHandle dependsOn = default(JobHandle))
        {
            BatchQueryJob <CapsulecastCommand, RaycastHit> batchQueryJob = new BatchQueryJob <CapsulecastCommand, RaycastHit>(commands, results);

            JobsUtility.JobScheduleParameters jobScheduleParameters = new JobsUtility.JobScheduleParameters(UnsafeUtility.AddressOf <BatchQueryJob <CapsulecastCommand, RaycastHit> >(ref batchQueryJob), BatchQueryJobStruct <BatchQueryJob <CapsulecastCommand, RaycastHit> > .Initialize(), dependsOn, ScheduleMode.Batched);
            return(CapsulecastCommand.ScheduleCapsulecastBatch(ref jobScheduleParameters, NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks <CapsulecastCommand>(commands), commands.Length, NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks <RaycastHit>(results), results.Length, minCommandsPerJob));
        }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.CapsulecastCommand o;
         UnityEngine.Vector3            a1;
         checkType(l, 2, out a1);
         UnityEngine.Vector3 a2;
         checkType(l, 3, out a2);
         System.Single a3;
         checkType(l, 4, out a3);
         UnityEngine.Vector3 a4;
         checkType(l, 5, out a4);
         System.Single a5;
         checkType(l, 6, out a5);
         System.Int32 a6;
         checkType(l, 7, out a6);
         o = new UnityEngine.CapsulecastCommand(a1, a2, a3, a4, a5, a6);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 4
0
 static public int ctor_s(IntPtr l)
 {
     try {
         UnityEngine.CapsulecastCommand o;
         o = new UnityEngine.CapsulecastCommand();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 5
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.CapsulecastCommand o;
         UnityEngine.Vector3            a1;
         checkType(l, 2, out a1);
         UnityEngine.Vector3 a2;
         checkType(l, 3, out a2);
         System.Single a3;
         checkType(l, 4, out a3);
         UnityEngine.Vector3 a4;
         checkType(l, 5, out a4);
         System.Single a5;
         checkType(l, 6, out a5);
         System.Int32 a6;
         checkType(l, 7, out a6);
         o = new UnityEngine.CapsulecastCommand(a1, a2, a3, a4, a5, a6);
         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
 }
Ejemplo n.º 6
0
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.CapsulecastCommand o;
         if (argc == 7)
         {
             UnityEngine.Vector3 a1;
             checkType(l, 2, out a1);
             UnityEngine.Vector3 a2;
             checkType(l, 3, out a2);
             System.Single a3;
             checkType(l, 4, out a3);
             UnityEngine.Vector3 a4;
             checkType(l, 5, out a4);
             System.Single a5;
             checkType(l, 6, out a5);
             System.Int32 a6;
             checkType(l, 7, out a6);
             o = new UnityEngine.CapsulecastCommand(a1, a2, a3, a4, a5, a6);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc <= 2)
         {
             o = new UnityEngine.CapsulecastCommand();
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }