GetNearest() public method

public GetNearest ( ScriptRuntime pos, float &minPowDist ) : EntityInfo
pos ScriptRuntime
minPowDist float
return EntityInfo
Exemplo n.º 1
0
 static public int GetNearest(IntPtr l)
 {
     try {
         GameFramework.EntityManager self = (GameFramework.EntityManager)checkSelf(l);
         ScriptRuntime.Vector3       a1;
         checkValueType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         var ret = self.GetNearest(a1, ref a2);
         pushValue(l, true);
         pushValue(l, ret);
         pushValue(l, a2);
         return(3);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }