|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class RadarWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(Radar), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("SetVerticeLength", SetVerticeLength);
- L.RegFunction("SetEdgeSizes", SetEdgeSizes);
- L.RegFunction("Fresh", Fresh);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("scale", get_scale, set_scale);
- L.RegVar("baseSize", get_baseSize, set_baseSize);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetVerticeLength(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Radar obj = (Radar)ToLua.CheckObject(L, 1, typeof(Radar));
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.SetVerticeLength(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetEdgeSizes(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- Radar obj = (Radar)ToLua.CheckObject(L, 1, typeof(Radar));
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
- obj.SetEdgeSizes(arg0, arg1);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Fresh(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Radar obj = (Radar)ToLua.CheckObject(L, 1, typeof(Radar));
- obj.Fresh();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_scale(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- Radar obj = (Radar)o;
- float ret = obj.scale;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_baseSize(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- Radar obj = (Radar)o;
- float ret = obj.baseSize;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index baseSize on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_scale(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- Radar obj = (Radar)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.scale = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_baseSize(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- Radar obj = (Radar)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.baseSize = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index baseSize on a nil value" : e.Message);
- }
- }
- }
-
|