static public int Start(IntPtr l) { try{ if (matchType(l, 2, typeof(float), typeof(float))) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); System.Single a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.Start(a1, a2); return(0); } else if (matchType(l, 2, typeof(float))) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); System.Single a1; checkType(l, 2, out a1); self.Start(a1); return(0); } else if (matchType(l, 2)) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); self.Start(); return(0); } LuaDLL.luaL_error(l, "No matched override function to call"); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int get_status(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.LocationService self = (UnityEngine.LocationService)checkSelf(l); pushValue(l, true); pushEnum(l, (int)self.status); 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 constructor(IntPtr l) { UnityEngine.LocationService o; o = new UnityEngine.LocationService(); pushObject(l, o); return(1); }
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.LocationService o; o = new UnityEngine.LocationService(); 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 void LocationService_lastData(JSVCall vc) { UnityEngine.LocationService _this = (UnityEngine.LocationService)vc.csObj; var result = _this.lastData; JSMgr.datax.setObject((int)JSApi.SetType.Rval, result); }
static void LocationService_status(JSVCall vc) { UnityEngine.LocationService _this = (UnityEngine.LocationService)vc.csObj; var result = _this.status; JSApi.setEnum((int)JSApi.SetType.Rval, (int)result); }
// fields // properties static void LocationService_isEnabledByUser(JSVCall vc) { UnityEngine.LocationService _this = (UnityEngine.LocationService)vc.csObj; var result = _this.isEnabledByUser; JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result)); }
static public int Start(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 (argc == 1) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); self.Start(); pushValue(l, true); return(1); } else if (argc == 2) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); System.Single a1; checkType(l, 2, out a1); self.Start(a1); pushValue(l, true); return(1); } else if (argc == 3) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); System.Single a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.Start(a1, a2); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function Start 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 get_isEnabledByUser(IntPtr l) { try { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); pushValue(l, true); pushValue(l, self.isEnabledByUser); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int get_status(IntPtr l) { try { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); pushValue(l, true); pushEnum(l, (int)self.status); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int get_lastData(IntPtr l) { try { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); pushValue(l, true); pushValue(l, self.lastData); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int Stop(IntPtr l) { try{ UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); self.Stop(); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int constructor(IntPtr l) { try { UnityEngine.LocationService o; o=new UnityEngine.LocationService(); pushValue(l,true); pushValue(l,o); return 2; } catch(Exception e) { return error(l,e); } }
static public int Stop(IntPtr l) { try { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); self.Stop(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int get_status(IntPtr l) { try { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); pushEnum(l, (int)self.status); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int get_isEnabledByUser(IntPtr l) { try { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); pushValue(l, self.isEnabledByUser); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int constructor(IntPtr l) { try { UnityEngine.LocationService o; o = new UnityEngine.LocationService(); pushValue(l, o); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int constructor(IntPtr l) { LuaDLL.lua_remove(l, 1); UnityEngine.LocationService o; if (matchType(l, 1)) { o = new UnityEngine.LocationService(); pushObject(l, o); return(1); } LuaDLL.luaL_error(l, "New object failed."); return(0); }
public static int constructor(IntPtr l) { try { UnityEngine.LocationService o; o=new UnityEngine.LocationService(); pushValue(l,o); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } }
static public int ctor_s(IntPtr l) { try { UnityEngine.LocationService o; o = new UnityEngine.LocationService(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int Start__Single(IntPtr l) { try { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); System.Single a1; checkType(l, 2, out a1); self.Start(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int Stop(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.LocationService obj = (UnityEngine.LocationService)ToLua.CheckObject(L, 1, typeof(UnityEngine.LocationService)); obj.Stop(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_lastData(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.LocationService obj = (UnityEngine.LocationService)o; UnityEngine.LocationInfo ret = obj.lastData; ToLua.PushValue(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lastData on a nil value" : e.Message)); } }
static int get_status(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.LocationService obj = (UnityEngine.LocationService)o; UnityEngine.LocationServiceStatus ret = obj.status; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index status on a nil value" : e.Message)); } }
static int get_isEnabledByUser(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.LocationService obj = (UnityEngine.LocationService)o; bool ret = obj.isEnabledByUser; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isEnabledByUser on a nil value" : e.Message)); } }
static public int Start(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 1) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); self.Start(); pushValue(l, true); return(1); } else if (argc == 2) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); System.Single a1; checkType(l, 2, out a1); self.Start(a1); pushValue(l, true); return(1); } else if (argc == 3) { UnityEngine.LocationService self = (UnityEngine.LocationService)checkSelf(l); System.Single a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.Start(a1, a2); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
static int _CreateUnityEngine_LocationService(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { UnityEngine.LocationService obj = new UnityEngine.LocationService(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.LocationService.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Start(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.LocationService))) { UnityEngine.LocationService obj = (UnityEngine.LocationService)ToLua.ToObject(L, 1); obj.Start(); return(0); } else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.LocationService), typeof(float))) { UnityEngine.LocationService obj = (UnityEngine.LocationService)ToLua.ToObject(L, 1); float arg0 = (float)LuaDLL.lua_tonumber(L, 2); obj.Start(arg0); return(0); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.LocationService), typeof(float), typeof(float))) { UnityEngine.LocationService obj = (UnityEngine.LocationService)ToLua.ToObject(L, 1); float arg0 = (float)LuaDLL.lua_tonumber(L, 2); float arg1 = (float)LuaDLL.lua_tonumber(L, 3); obj.Start(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.LocationService.Start")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
internal static LocationService.HeadingInfo GetLastHeading() { LocationService.HeadingInfo result; LocationService.GetLastHeading_Injected(out result); return(result); }
static public int get_isEnabledByUser(IntPtr l) { UnityEngine.LocationService o = (UnityEngine.LocationService)checkSelf(l); pushValue(l, o.isEnabledByUser); return(1); }
static public int get_status(IntPtr l) { UnityEngine.LocationService o = (UnityEngine.LocationService)checkSelf(l); pushValue(l, o.status); return(1); }
static public int get_lastData(IntPtr l) { UnityEngine.LocationService o = (UnityEngine.LocationService)checkSelf(l); pushValue(l, o.lastData); return(1); }