static int set_onMove(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; PgJoystick.OnMoveHandler2 arg0 = (PgJoystick.OnMoveHandler2)ToLua.CheckDelegate <PgJoystick.OnMoveHandler2>(L, 2); obj.onMove = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onMove on a nil value")); } }
static int get_onMove(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); PgJoystick obj = (PgJoystick)o; PgJoystick.OnMoveHandler2 ret = obj.onMove; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onMove on a nil value")); } }