File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Define Ruby code generator for Go Direct Force & Acceleration Blocks
3
+ * @param {RubyGenerator } Generator The RubyGenerator
4
+ * @return {RubyGenerator } same as param.
5
+ */
6
+ export default function ( Generator ) {
7
+
8
+ Generator . gdxfor_getForce = function ( ) {
9
+ return [ `gdx_for_force` , Generator . ORDER_ATOMIC ] ;
10
+ } ;
11
+
12
+ return Generator ;
13
+ }
Original file line number Diff line number Diff line change @@ -24,8 +24,9 @@ import TranslateBlocks from './translate.js';
24
24
import MakeyMakeyBlocks from './makeymakey.js' ;
25
25
import MicrobitBlocks from './microbit.js' ;
26
26
import BoostBlocks from './boost.js' ;
27
- import EV3Blocks from './ev3.js'
27
+ import EV3Blocks from './ev3.js' ;
28
28
import WeDo2Blocks from './wedo2.js' ;
29
+ import GdxForBlocks from './gdx_for.js' ;
29
30
30
31
const SCALAR_TYPE = '' ;
31
32
const LIST_TYPE = 'list' ;
@@ -454,5 +455,6 @@ MicrobitBlocks(RubyGenerator);
454
455
BoostBlocks ( RubyGenerator ) ;
455
456
EV3Blocks ( RubyGenerator ) ;
456
457
WeDo2Blocks ( RubyGenerator ) ;
458
+ GdxForBlocks ( RubyGenerator ) ;
457
459
458
460
export default RubyGenerator ;
You can’t perform that action at this time.
0 commit comments