Module: TyranoDsl::ParsingWords::Jump
- Includes:
- ParsingWordsModule
- Defined in:
- lib/tyrano_dsl/parsing_words/jump.rb
Instance Method Summary collapse
Instance Method Details
#jump(scene_name, label_name = nil) ⇒ void
This method returns an undefined value.
13 14 15 16 17 18 19 20 21 |
# File 'lib/tyrano_dsl/parsing_words/jump.rb', line 13 def jump(scene_name, label_name = nil) add_parsed_word( TyranoDsl::Vocabulary::JUMP, scene_name: scene_name, label_name: label_name ) label = label_name ? context.world.label_value(label_name) : nil context.world.jump_targets << TyranoDsl::Elements::JumpTarget.new(scene_name, label) end |