class TyranoDsl::ExportGame::WritingWords::DeclareLabel
Public Instance Methods
run(writing_context, world, word_location, parameters)
click to toggle source
# 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