Guest User

Untitled

a guest
Aug 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. package programmingblocks
  2. {
  3. import programmingblocks.io.Output;
  4. import programmingblocks.io.TypedInput;
  5.  
  6. public class Add extends Block {
  7. public function Add() {
  8. super();
  9.  
  10. inputs["a"] = new TypedInput( Number );
  11. inputs["b"] = new TypedInput( Number );
  12.  
  13.  
  14. outputs["result"] = new Output(Number);
  15.  
  16. }
  17.  
  18. override public function update():void
  19. {
  20. super.update();
  21.  
  22. o("result", i("a") + i("b"));
  23. }
  24.  
  25. }
  26. }
Add Comment
Please, Sign In to add comment