private static int Init(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 2); FubenTwoDMapController fubenTwoDMapController = (FubenTwoDMapController)ToLua.CheckObject(L, 1, typeof(FubenTwoDMapController)); Vector3 initPoint = ToLua.ToVector3(L, 2); fubenTwoDMapController.Init(initPoint); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }
private static int Handle(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 2); FubenTwoDMapController fubenTwoDMapController = (FubenTwoDMapController)ToLua.CheckObject(L, 1, typeof(FubenTwoDMapController)); bool isHandle = LuaDLL.luaL_checkboolean(L, 2); fubenTwoDMapController.Handle(isHandle); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }
private static int set_ClampRatio(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); FubenTwoDMapController fubenTwoDMapController = (FubenTwoDMapController)obj; Vector2 clampRatio = ToLua.ToVector2(L, 2); fubenTwoDMapController.ClampRatio = clampRatio; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index ClampRatio on a nil value"); } return(result); }
private static int set_MovePosSpeed(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); FubenTwoDMapController fubenTwoDMapController = (FubenTwoDMapController)obj; float movePosSpeed = (float)LuaDLL.luaL_checknumber(L, 2); fubenTwoDMapController.MovePosSpeed = movePosSpeed; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index MovePosSpeed on a nil value"); } return(result); }