static int SetId(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Logic.UI.RedPoint.View.RedPointView obj = (Logic.UI.RedPoint.View.RedPointView)ToLua.CheckObject(L, 1, typeof(Logic.UI.RedPoint.View.RedPointView)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.SetId(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_luaType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.UI.RedPoint.View.RedPointView obj = (Logic.UI.RedPoint.View.RedPointView)o; int[] ret = obj.luaType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index luaType on a nil value" : e.Message)); } }
static int get_id(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.UI.RedPoint.View.RedPointView obj = (Logic.UI.RedPoint.View.RedPointView)o; int ret = obj.id; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index id on a nil value" : e.Message)); } }
static int set_luaType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.UI.RedPoint.View.RedPointView obj = (Logic.UI.RedPoint.View.RedPointView)o; int[] arg0 = ToLua.CheckNumberArray <int>(L, 2); obj.luaType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index luaType on a nil value" : e.Message)); } }
static int set_id(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Logic.UI.RedPoint.View.RedPointView obj = (Logic.UI.RedPoint.View.RedPointView)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.id = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index id on a nil value" : e.Message)); } }