Class: TyranoDsl::ExportGame::WritingWords::DeclareLabel
- Inherits:
-
Object
- Object
- TyranoDsl::ExportGame::WritingWords::DeclareLabel
- Defined in:
- lib/tyrano_dsl/export_game/writing_words/declare_label.rb
Instance Method Summary collapse
Instance Method Details
#run(writing_context, world, word_location, parameters) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/tyrano_dsl/export_game/writing_words/declare_label.rb', line 5 def run(writing_context, world, word_location, parameters) label_name = parameters[:label_name] label = world.labels[label_name] writing_context.append_content( word_location, "*#{label.target_name}" ) writing_context.add_label( word_location, label_name ) end |