Class: TyranoDsl::WritingWords::HideCharacter

Inherits:
Object
  • Object
show all
Defined in:
lib/tyrano_dsl/writing_words/hide_character.rb

Instance Method Summary collapse

Instance Method Details

#run(writing_context, world, word_location, parameters) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/tyrano_dsl/writing_words/hide_character.rb', line 5

def run(writing_context, world, word_location, parameters)
  character = world.characters[parameters[:name]]
  writing_context.append_content(
      word_location,
      "[chara_hide name=\"#{character.name}\" time=\"1000\" wait=\"true\"]"
  )
end