Inheritance: Object
 static public int constructor(IntPtr l)
 {
     UnityEngine.Compass o;
     o = new UnityEngine.Compass();
     pushObject(l, o);
     return(1);
 }
Exemple #2
0
// fields

// properties
    static void Compass_magneticHeading(JSVCall vc)
    {
        UnityEngine.Compass _this = (UnityEngine.Compass)vc.csObj;
        var result = _this.magneticHeading;

        JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(result));
    }
Exemple #3
0
 static public int get_trueHeading(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.Compass self = (UnityEngine.Compass)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.trueHeading);
         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
 }
Exemple #4
0
    static void Compass_timestamp(JSVCall vc)
    {
        UnityEngine.Compass _this = (UnityEngine.Compass)vc.csObj;
        var result = _this.timestamp;

        JSApi.setDouble((int)JSApi.SetType.Rval, (System.Double)(result));
    }
Exemple #5
0
    static void Compass_rawVector(JSVCall vc)
    {
        UnityEngine.Compass _this = (UnityEngine.Compass)vc.csObj;
        var result = _this.rawVector;

        JSApi.setVector3S((int)JSApi.SetType.Rval, result);
    }
Exemple #6
0
    static void Compass_headingAccuracy(JSVCall vc)
    {
        UnityEngine.Compass _this = (UnityEngine.Compass)vc.csObj;
        var result = _this.headingAccuracy;

        JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(result));
    }
Exemple #7
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.Compass o;
         o = new UnityEngine.Compass();
         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 set_enabled(IntPtr l)
    {
        UnityEngine.Compass o = (UnityEngine.Compass)checkSelf(l);
        bool v;

        checkType(l, 2, out v);
        o.enabled = v;
        return(0);
    }
 static public int get_enabled(IntPtr l)
 {
     try {
         UnityEngine.Compass self = (UnityEngine.Compass)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.enabled);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_headingAccuracy(IntPtr l)
 {
     try {
         UnityEngine.Compass self = (UnityEngine.Compass)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.headingAccuracy);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #11
0
 static public int get_enabled(IntPtr l)
 {
     try {
         UnityEngine.Compass self = (UnityEngine.Compass)checkSelf(l);
         pushValue(l, self.enabled);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.Compass o;
			o=new UnityEngine.Compass();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemple #13
0
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.Compass o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.Compass();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
Exemple #14
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Compass o;
         o = new UnityEngine.Compass();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.Compass o;
         o=new UnityEngine.Compass();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Compass o;
         o = new UnityEngine.Compass();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_enabled(IntPtr l)
 {
     try {
         UnityEngine.Compass self = (UnityEngine.Compass)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.enabled = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #18
0
 static public int set_enabled(IntPtr l)
 {
     try {
         UnityEngine.Compass self = (UnityEngine.Compass)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.enabled = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Exemple #19
0
 static void Compass_enabled(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.Compass _this = (UnityEngine.Compass)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.Compass _this = (UnityEngine.Compass)vc.csObj;
         _this.enabled = arg0;
     }
 }
 static public int get_enabled(IntPtr l)
 {
     UnityEngine.Compass o = (UnityEngine.Compass)checkSelf(l);
     pushValue(l, o.enabled);
     return(1);
 }
 static public int get_timestamp(IntPtr l)
 {
     UnityEngine.Compass o = (UnityEngine.Compass)checkSelf(l);
     pushValue(l, o.timestamp);
     return(1);
 }
 static public int get_rawVector(IntPtr l)
 {
     UnityEngine.Compass o = (UnityEngine.Compass)checkSelf(l);
     pushValue(l, o.rawVector);
     return(1);
 }
 static public int get_headingAccuracy(IntPtr l)
 {
     UnityEngine.Compass o = (UnityEngine.Compass)checkSelf(l);
     pushValue(l, o.headingAccuracy);
     return(1);
 }
 static public int get_trueHeading(IntPtr l)
 {
     UnityEngine.Compass o = (UnityEngine.Compass)checkSelf(l);
     pushValue(l, o.trueHeading);
     return(1);
 }