public static int GridPositionToPBBattlePosition_s(IntPtr l) { int result; try { GridPosition gridPosition; LuaObject.checkValueType <GridPosition>(l, 1, out gridPosition); ProBattlePosition o = BattleCommand.GridPositionToPBBattlePosition(gridPosition); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }