tyrano_dsl 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +56 -5
  3. data/bin/tyrano_dsl.rb +21 -8
  4. data/lib/tyrano_dsl/elements/background.rb +1 -1
  5. data/lib/tyrano_dsl/elements/character.rb +1 -2
  6. data/lib/tyrano_dsl/elements/jump_target.rb +1 -1
  7. data/lib/tyrano_dsl/elements/label.rb +0 -1
  8. data/lib/tyrano_dsl/elements/scene.rb +1 -1
  9. data/lib/tyrano_dsl/elements/title_screen.rb +1 -1
  10. data/lib/tyrano_dsl/elements/variable.rb +1 -1
  11. data/lib/tyrano_dsl/{elements_writers → export_game/elements_writers}/background_writer.rb +5 -5
  12. data/lib/tyrano_dsl/{elements_writers → export_game/elements_writers}/character_writer.rb +5 -5
  13. data/lib/tyrano_dsl/{elements_writers → export_game/elements_writers}/characters_writer.rb +4 -4
  14. data/lib/tyrano_dsl/{elements_writers → export_game/elements_writers}/elements_writers_module.rb +1 -1
  15. data/lib/tyrano_dsl/{elements_writers → export_game/elements_writers}/scene_writer.rb +4 -4
  16. data/lib/tyrano_dsl/{elements_writers → export_game/elements_writers}/title_screen_writer.rb +4 -4
  17. data/lib/tyrano_dsl/{elements_writers → export_game/elements_writers}/variables_writer.rb +4 -4
  18. data/lib/tyrano_dsl/export_game/export_game.rb +4 -0
  19. data/lib/tyrano_dsl/{file_actions → export_game/file_actions}/clear_directory.rb +3 -2
  20. data/lib/tyrano_dsl/{file_actions → export_game/file_actions}/create_file.rb +3 -2
  21. data/lib/tyrano_dsl/{file_actions → export_game/file_actions}/file_copy.rb +5 -4
  22. data/lib/tyrano_dsl/{file_actions → export_game/file_actions}/files_actions_module.rb +3 -1
  23. data/lib/tyrano_dsl/{file_actions → export_game/file_actions}/json_patch.rb +8 -3
  24. data/lib/tyrano_dsl/export_game/main.rb +26 -0
  25. data/lib/tyrano_dsl/{writer.rb → export_game/writer.rb} +17 -17
  26. data/lib/tyrano_dsl/{writing_context.rb → export_game/writing_context.rb} +4 -4
  27. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/ask_question.rb +2 -2
  28. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/conditional_jump.rb +2 -2
  29. data/lib/tyrano_dsl/export_game/writing_words/declare_background.rb +5 -0
  30. data/lib/tyrano_dsl/export_game/writing_words/declare_character.rb +5 -0
  31. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/declare_label.rb +1 -1
  32. data/lib/tyrano_dsl/export_game/writing_words/declare_variable.rb +5 -0
  33. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/display_text.rb +1 -1
  34. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/hide_character.rb +1 -1
  35. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/hide_message_window.rb +1 -1
  36. data/lib/tyrano_dsl/export_game/writing_words/include_file.rb +5 -0
  37. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/jump.rb +2 -2
  38. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/nop.rb +1 -1
  39. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/set_background.rb +2 -2
  40. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/set_character_stance.rb +2 -2
  41. data/lib/tyrano_dsl/export_game/writing_words/set_title_screen_background.rb +4 -0
  42. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/show_character.rb +1 -1
  43. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/show_message_window.rb +1 -1
  44. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/start_scene.rb +1 -1
  45. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/update_variable.rb +2 -2
  46. data/lib/tyrano_dsl/{writing_words → export_game/writing_words}/writing_words_module.rb +2 -2
  47. data/lib/tyrano_dsl/export_text/export_text.rb +4 -0
  48. data/lib/tyrano_dsl/export_text/main.rb +27 -0
  49. data/lib/tyrano_dsl/export_text/writer.rb +40 -0
  50. data/lib/tyrano_dsl/parser.rb +14 -1
  51. data/lib/tyrano_dsl/parsing_words/ask_question.rb +0 -4
  52. data/lib/tyrano_dsl/parsing_words/conditional_jump.rb +0 -4
  53. data/lib/tyrano_dsl/parsing_words/declare_background.rb +0 -5
  54. data/lib/tyrano_dsl/parsing_words/declare_character.rb +0 -4
  55. data/lib/tyrano_dsl/parsing_words/declare_label.rb +0 -4
  56. data/lib/tyrano_dsl/parsing_words/declare_variable.rb +0 -4
  57. data/lib/tyrano_dsl/parsing_words/display_text.rb +0 -5
  58. data/lib/tyrano_dsl/parsing_words/hide_character.rb +0 -6
  59. data/lib/tyrano_dsl/parsing_words/hide_message_window.rb +0 -5
  60. data/lib/tyrano_dsl/parsing_words/include_file.rb +0 -6
  61. data/lib/tyrano_dsl/parsing_words/jump.rb +0 -5
  62. data/lib/tyrano_dsl/parsing_words/set_background.rb +0 -5
  63. data/lib/tyrano_dsl/parsing_words/set_character_stance.rb +0 -5
  64. data/lib/tyrano_dsl/parsing_words/set_title_screen_background.rb +0 -5
  65. data/lib/tyrano_dsl/parsing_words/show_character.rb +0 -5
  66. data/lib/tyrano_dsl/parsing_words/show_message_window.rb +0 -5
  67. data/lib/tyrano_dsl/parsing_words/start_scene.rb +0 -4
  68. data/lib/tyrano_dsl/parsing_words/update_variable.rb +0 -5
  69. data/lib/tyrano_dsl/tyrano_dsl.rb +1 -1
  70. metadata +41 -37
  71. data/lib/tyrano_dsl/main.rb +0 -18
  72. data/lib/tyrano_dsl/writing_words/declare_background.rb +0 -5
  73. data/lib/tyrano_dsl/writing_words/declare_character.rb +0 -5
  74. data/lib/tyrano_dsl/writing_words/declare_variable.rb +0 -5
  75. data/lib/tyrano_dsl/writing_words/include_file.rb +0 -5
  76. data/lib/tyrano_dsl/writing_words/set_title_screen_background.rb +0 -4
@@ -1,11 +1,11 @@
1
- require_relative '../elements/variable'
1
+ require_relative '../../elements/variable'
2
2
  require_relative '../file_actions/json_patch'
3
3
  require_relative 'elements_writers_module'
4
4
 
5
5
  # Write a variable
6
- class TyranoDsl::ElementsWriters::VariablesWriter
6
+ class TyranoDsl::ExportGame::ElementsWriters::VariablesWriter
7
7
 
8
- include TyranoDsl::ElementsWriters::ElementsWritersModule
8
+ include TyranoDsl::ExportGame::ElementsWriters::ElementsWritersModule
9
9
 
10
10
  # @param [TyranoDsl::Elements::World] world
11
11
  # @return [Array]
@@ -19,7 +19,7 @@ class TyranoDsl::ElementsWriters::VariablesWriter
19
19
  }
20
20
  end
21
21
  [
22
- TyranoDsl::FileActions::JsonPatch.new(
22
+ TyranoDsl::ExportGame::FileActions::JsonPatch.new(
23
23
  'builder_config.json',
24
24
  ['map_var'],
25
25
  variable_content
@@ -0,0 +1,4 @@
1
+ module TyranoDsl
2
+ module ExportGame
3
+ end
4
+ end
@@ -4,9 +4,9 @@ require_relative 'files_actions_module'
4
4
 
5
5
  # Remove all files from a directory
6
6
 
7
- class TyranoDsl::FileActions::ClearDirectory
7
+ class TyranoDsl::ExportGame::FileActions::ClearDirectory
8
8
 
9
- include TyranoDsl::FileActions::FileActionsModule
9
+ include TyranoDsl::ExportGame::FileActions::FileActionsModule
10
10
 
11
11
  # @return [String]
12
12
  attr_reader :path
@@ -18,6 +18,7 @@ class TyranoDsl::FileActions::ClearDirectory
18
18
  end
19
19
 
20
20
  # @param [String] tyrano_project_path
21
+ # @return [void]
21
22
  def run(tyrano_project_path)
22
23
  full_path = File.join(tyrano_project_path, path)
23
24
  log {"Cleaning [#{full_path}]"}
@@ -1,9 +1,9 @@
1
1
  require_relative 'files_actions_module'
2
2
 
3
3
  # Create a file with a custom content
4
- class TyranoDsl::FileActions::CreateFile
4
+ class TyranoDsl::ExportGame::FileActions::CreateFile
5
5
 
6
- include TyranoDsl::FileActions::FileActionsModule
6
+ include TyranoDsl::ExportGame::FileActions::FileActionsModule
7
7
 
8
8
  # @return [String]
9
9
  attr_reader :content
@@ -19,6 +19,7 @@ class TyranoDsl::FileActions::CreateFile
19
19
  end
20
20
 
21
21
  # @param [String] tyrano_project_path
22
+ # @return [void]
22
23
  def run(tyrano_project_path)
23
24
  full_path = File.join(tyrano_project_path, path)
24
25
  log {"Creating file [#{full_path}]"}
@@ -4,15 +4,15 @@ require_relative 'files_actions_module'
4
4
 
5
5
 
6
6
  # Direct copy of a file from a source to a destination
7
- class TyranoDsl::FileActions::FileCopy
7
+ class TyranoDsl::ExportGame::FileActions::FileCopy
8
+
9
+ include TyranoDsl::ExportGame::FileActions::FileActionsModule
8
10
 
9
11
  # @return [String]
10
12
  attr_reader :from_path
11
13
  # @return [String]
12
14
  attr_reader :to_path
13
15
 
14
- include TyranoDsl::FileActions::FileActionsModule
15
-
16
16
  # @param [String] from_path
17
17
  # @param [String] to_path
18
18
  def initialize(from_path, to_path)
@@ -22,9 +22,10 @@ class TyranoDsl::FileActions::FileCopy
22
22
  end
23
23
 
24
24
  # @param [String] tyrano_project_path
25
+ # @return [void]
25
26
  def run(tyrano_project_path)
26
27
  full_path = File.join(tyrano_project_path, to_path)
27
- log {"Copy file [#{from_path}] to [#{full_path}]"}
28
+ log {"Copying file [#{from_path}] to [#{full_path}]"}
28
29
  create_parent_dir_if_not_exist(full_path)
29
30
  FileUtils.copy_file from_path, full_path
30
31
  end
@@ -1,6 +1,8 @@
1
1
  require 'logger'
2
2
 
3
- module TyranoDsl
3
+ require_relative '../export_game'
4
+
5
+ module TyranoDsl::ExportGame
4
6
  module FileActions
5
7
 
6
8
  # Helpers to write file actions
@@ -3,9 +3,9 @@ require 'json'
3
3
  require_relative 'files_actions_module'
4
4
 
5
5
  # Path a JSON file
6
- class TyranoDsl::FileActions::JsonPatch
6
+ class TyranoDsl::ExportGame::FileActions::JsonPatch
7
7
 
8
- include TyranoDsl::FileActions::FileActionsModule
8
+ include TyranoDsl::ExportGame::FileActions::FileActionsModule
9
9
 
10
10
  # @return [String]
11
11
  attr_reader :file_path
@@ -25,6 +25,7 @@ class TyranoDsl::FileActions::JsonPatch
25
25
  end
26
26
 
27
27
  # @param [String] tyrano_project_path
28
+ # @return [void]
28
29
  def run(tyrano_project_path)
29
30
  full_path = File.join(tyrano_project_path, file_path)
30
31
  log {"Patching file [#{full_path}] at #{patching_path}"}
@@ -32,16 +33,20 @@ class TyranoDsl::FileActions::JsonPatch
32
33
  raise TyranoDsl::TyranoException, "Missing file [#{full_path}]"
33
34
  end
34
35
  content = JSON.parse(IO.read(full_path))
36
+
37
+ # Going down on the tree …
35
38
  current_subtree = content
36
39
  0.upto(patching_path.length - 2) do |path_segment_index|
37
40
  current_subtree = current_subtree[patching_path[path_segment_index]]
38
41
  end
42
+ # … and patch the leaf
39
43
  current_subtree[patching_path.last] = patched_content
44
+
40
45
  File.write(full_path, JSON.pretty_generate(content))
41
46
  end
42
47
 
43
48
  def to_s
44
- "Patch JSON [#{file_path}] at #{patching_path}"
49
+ "Patch [#{file_path}] at #{patching_path}"
45
50
  end
46
51
 
47
52
  end
@@ -0,0 +1,26 @@
1
+ require_relative '../parser'
2
+ require_relative '../parsing_context'
3
+ require_relative '../tyrano_dsl'
4
+ require_relative '../tyrano_exception'
5
+ require_relative 'export_game'
6
+ require_relative 'writer'
7
+
8
+ class TyranoDsl::ExportGame::Main
9
+
10
+ # @param [String] file_path path to the DSL file
11
+ # @return [TyranoDsl::ExportGame::WritingContext]
12
+ def run(file_path)
13
+ parsing_context = TyranoDsl::Parser.parse(file_path)
14
+ TyranoDsl::ExportGame::Writer.new.write(parsing_context.world, parsing_context.words)
15
+ end
16
+
17
+ # @param [TyranoDsl::ExportGame::WritingContext] writing_context
18
+ # @param [String] tyrano_project_path
19
+ # @return [void]
20
+ def apply(writing_context, tyrano_project_path)
21
+ writing_context.file_actions.each do |file_action|
22
+ file_action.run(tyrano_project_path)
23
+ end
24
+ end
25
+
26
+ end
@@ -1,32 +1,32 @@
1
1
  require 'logger'
2
2
 
3
+ require_relative '../tyrano_dsl'
4
+ require_relative '../vocabulary'
3
5
  require_relative 'elements_writers/background_writer'
4
6
  require_relative 'elements_writers/character_writer'
5
7
  require_relative 'elements_writers/characters_writer'
6
8
  require_relative 'elements_writers/title_screen_writer'
7
9
  require_relative 'elements_writers/variables_writer'
8
- require_relative 'tyrano_dsl'
9
- require_relative 'vocabulary'
10
10
  require_relative 'writing_context'
11
11
 
12
12
  # Write the content that have been parsed
13
- class TyranoDsl::Writer
13
+ class TyranoDsl::ExportGame::Writer
14
14
 
15
15
  def initialize
16
16
  @logger = Logger.new(STDOUT)
17
17
  @words = {}
18
- TyranoDsl::Vocabulary.get_words_class('writing_words') do |word, word_class|
18
+ TyranoDsl::Vocabulary.get_words_class('export_game/writing_words') do |word, word_class|
19
19
  @words[word] = word_class.new
20
20
  end
21
21
  end
22
22
 
23
23
  # @param [TyranoDsl::Elements::World] world
24
24
  # @param [Array<TyranoDsl::ParsedWord>] parsed_words
25
- # @return [TyranoDsl::WritingContext]
25
+ # @return [TyranoDsl::ExportGame::WritingContext]
26
26
  # @raise [TyranoDsl::TyranoException]
27
27
  def write(world, parsed_words)
28
28
  log {'Writing content'}
29
- writing_context = TyranoDsl::WritingContext.new(world)
29
+ writing_context = TyranoDsl::ExportGame::WritingContext.new(world)
30
30
  write_title_screen(writing_context, world)
31
31
  write_backgrounds(writing_context, world)
32
32
  write_characters(writing_context, world)
@@ -39,58 +39,58 @@ class TyranoDsl::Writer
39
39
 
40
40
  private
41
41
 
42
- # @param [TyranoDsl::WritingContext] writing_context
42
+ # @param [TyranoDsl::ExportGame::WritingContext] writing_context
43
43
  # @param [TyranoDsl::Elements::World] world
44
44
  # @return [void]
45
45
  # @raise [TyranoDsl::TyranoException]
46
46
  def write_title_screen(writing_context, world)
47
- title_screen_writer = TyranoDsl::ElementsWriters::TitleScreenWriter.new
47
+ title_screen_writer = TyranoDsl::ExportGame::ElementsWriters::TitleScreenWriter.new
48
48
  concat_file_actions(writing_context, title_screen_writer.write(world))
49
49
  end
50
50
 
51
- # @param [TyranoDsl::WritingContext] writing_context
51
+ # @param [TyranoDsl::ExportGame::WritingContext] writing_context
52
52
  # @param [TyranoDsl::Elements::World] world
53
53
  # @return [void]
54
54
  # @raise [TyranoDsl::TyranoException]
55
55
  def write_characters(writing_context, world)
56
- character_writer = TyranoDsl::ElementsWriters::CharacterWriter.new
56
+ character_writer = TyranoDsl::ExportGame::ElementsWriters::CharacterWriter.new
57
57
  concat_file_actions(writing_context, character_writer.init_actions)
58
58
  world.characters.each_value do |character|
59
59
  concat_file_actions(writing_context, character_writer.write(character))
60
60
  end
61
- characters_writer = TyranoDsl::ElementsWriters::CharactersWriter.new
61
+ characters_writer = TyranoDsl::ExportGame::ElementsWriters::CharactersWriter.new
62
62
  concat_file_actions(writing_context, characters_writer.write(world))
63
63
  end
64
64
 
65
- # @param [TyranoDsl::WritingContext] writing_context
65
+ # @param [TyranoDsl::ExportGame::WritingContext] writing_context
66
66
  # @param [TyranoDsl::Elements::World] world
67
67
  # @return [void]
68
68
  # @raise [TyranoDsl::TyranoException]
69
69
  def write_backgrounds(writing_context, world)
70
- background_writer = TyranoDsl::ElementsWriters::BackgroundWriter.new
70
+ background_writer = TyranoDsl::ExportGame::ElementsWriters::BackgroundWriter.new
71
71
  concat_file_actions(writing_context, background_writer.init_actions)
72
72
  world.backgrounds.each_value do |background|
73
73
  concat_file_actions(writing_context, background_writer.write(background))
74
74
  end
75
75
  end
76
76
 
77
- # @param [TyranoDsl::WritingContext] writing_context
77
+ # @param [TyranoDsl::ExportGame::WritingContext] writing_context
78
78
  # @param [TyranoDsl::Elements::World] world
79
79
  # @return [void]
80
80
  # @raise [TyranoDsl::TyranoException]
81
81
  def write_variables(writing_context, world)
82
- variables_writer = TyranoDsl::ElementsWriters::VariablesWriter.new
82
+ variables_writer = TyranoDsl::ExportGame::ElementsWriters::VariablesWriter.new
83
83
  concat_file_actions(writing_context, variables_writer.write(world))
84
84
  end
85
85
 
86
- # @param [TyranoDsl::WritingContext] writing_context
86
+ # @param [TyranoDsl::ExportGame::WritingContext] writing_context
87
87
  # @param [Array] file_actions
88
88
  # @return [void]
89
89
  def concat_file_actions(writing_context, file_actions)
90
90
  writing_context.file_actions.concat(file_actions)
91
91
  end
92
92
 
93
- # @param [TyranoDsl::WritingContext] writing_context
93
+ # @param [TyranoDsl::ExportGame::WritingContext] writing_context
94
94
  # @param [Array<TyranoDsl::ParsedWord>] parsed_words
95
95
  # @param [TyranoDsl::Elements::World] world
96
96
  # @return [void]
@@ -1,12 +1,12 @@
1
1
  require 'logger'
2
2
  require 'set'
3
3
 
4
+ require_relative '../tyrano_dsl'
5
+ require_relative '../tyrano_exception'
4
6
  require_relative 'elements_writers/scene_writer'
5
- require_relative 'tyrano_exception'
6
- require_relative 'tyrano_dsl'
7
7
 
8
8
  # Context for writing
9
- class TyranoDsl::WritingContext
9
+ class TyranoDsl::ExportGame::WritingContext
10
10
 
11
11
  # @return [Array<String>]
12
12
  attr_reader :current_scene_assets
@@ -26,7 +26,7 @@ class TyranoDsl::WritingContext
26
26
  @current_scene_name = nil
27
27
  @current_scene_assets = nil
28
28
  @current_scene_labels = nil
29
- @scene_writer = TyranoDsl::ElementsWriters::SceneWriter.new
29
+ @scene_writer = TyranoDsl::ExportGame::ElementsWriters::SceneWriter.new
30
30
  end
31
31
 
32
32
  # Append some content to the current scene
@@ -1,8 +1,8 @@
1
1
  require_relative 'writing_words_module'
2
2
 
3
- class TyranoDsl::WritingWords::AskQuestion
3
+ class TyranoDsl::ExportGame::WritingWords::AskQuestion
4
4
 
5
- include TyranoDsl::WritingWords::WritingWordsModule
5
+ include TyranoDsl::ExportGame::WritingWords::WritingWordsModule
6
6
 
7
7
  def run(writing_context, world, word_location, parameters)
8
8
  content = []
@@ -1,8 +1,8 @@
1
1
  require_relative 'writing_words_module'
2
2
 
3
- class TyranoDsl::WritingWords::ConditionalJump
3
+ class TyranoDsl::ExportGame::WritingWords::ConditionalJump
4
4
 
5
- include TyranoDsl::WritingWords::WritingWordsModule
5
+ include TyranoDsl::ExportGame::WritingWords::WritingWordsModule
6
6
 
7
7
  OPERATORS_RUBY_TO_TYRANO = {
8
8
  '<' => '<',
@@ -0,0 +1,5 @@
1
+ require_relative 'nop'
2
+
3
+ class TyranoDsl::ExportGame::WritingWords::DeclareBackground < TyranoDsl::ExportGame::WritingWords::Nop
4
+
5
+ end
@@ -0,0 +1,5 @@
1
+ require_relative 'nop'
2
+
3
+ class TyranoDsl::ExportGame::WritingWords::DeclareCharacter < TyranoDsl::ExportGame::WritingWords::Nop
4
+
5
+ end
@@ -1,6 +1,6 @@
1
1
  require_relative 'writing_words_module'
2
2
 
3
- class TyranoDsl::WritingWords::DeclareLabel
3
+ class TyranoDsl::ExportGame::WritingWords::DeclareLabel
4
4
 
5
5
  def run(writing_context, world, word_location, parameters)
6
6
  label_name = parameters[:label_name]
@@ -0,0 +1,5 @@
1
+ require_relative 'nop'
2
+
3
+ class TyranoDsl::ExportGame::WritingWords::DeclareVariable < TyranoDsl::ExportGame::WritingWords::Nop
4
+
5
+ end
@@ -1,6 +1,6 @@
1
1
  require_relative 'writing_words_module'
2
2
 
3
- class TyranoDsl::WritingWords::DisplayText
3
+ class TyranoDsl::ExportGame::WritingWords::DisplayText
4
4
 
5
5
  def run(writing_context, world, word_location, parameters)
6
6
  character_name = parameters[:character_name]
@@ -1,6 +1,6 @@
1
1
  require_relative 'writing_words_module'
2
2
 
3
- class TyranoDsl::WritingWords::HideCharacter
3
+ class TyranoDsl::ExportGame::WritingWords::HideCharacter
4
4
 
5
5
  def run(writing_context, world, word_location, parameters)
6
6
  character = world.characters[parameters[:name]]
@@ -1,6 +1,6 @@
1
1
  require_relative 'writing_words_module'
2
2
 
3
- class TyranoDsl::WritingWords::HideMessageWindow
3
+ class TyranoDsl::ExportGame::WritingWords::HideMessageWindow
4
4
 
5
5
  def run(writing_context, world, word_location, parameters)
6
6
  writing_context.append_content(
@@ -0,0 +1,5 @@
1
+ require_relative 'nop'
2
+
3
+ class TyranoDsl::ExportGame::WritingWords::IncludeFile < TyranoDsl::ExportGame::WritingWords::Nop
4
+
5
+ end
@@ -1,8 +1,8 @@
1
1
  require_relative 'writing_words_module'
2
2
 
3
- class TyranoDsl::WritingWords::Jump
3
+ class TyranoDsl::ExportGame::WritingWords::Jump
4
4
 
5
- include TyranoDsl::WritingWords::WritingWordsModule
5
+ include TyranoDsl::ExportGame::WritingWords::WritingWordsModule
6
6
 
7
7
  def run(writing_context, world, word_location, parameters)
8
8
  scene_name = parameters[:scene_name]
@@ -1,6 +1,6 @@
1
1
  require_relative 'writing_words_module'
2
2
 
3
- class TyranoDsl::WritingWords::Nop
3
+ class TyranoDsl::ExportGame::WritingWords::Nop
4
4
 
5
5
  def run(writing_context, world, word_location, parameters)
6
6
  end
@@ -1,7 +1,7 @@
1
- require_relative '../elements/background'
1
+ require_relative '../../elements/background'
2
2
  require_relative 'writing_words_module'
3
3
 
4
- class TyranoDsl::WritingWords::SetBackground
4
+ class TyranoDsl::ExportGame::WritingWords::SetBackground
5
5
 
6
6
  def run(writing_context, world, word_location, parameters)
7
7
  background = world.backgrounds[parameters[:name]]
@@ -1,7 +1,7 @@
1
- require_relative '../elements/character'
1
+ require_relative '../../elements/character'
2
2
  require_relative 'writing_words_module'
3
3
 
4
- class TyranoDsl::WritingWords::SetCharacterStance
4
+ class TyranoDsl::ExportGame::WritingWords::SetCharacterStance
5
5
 
6
6
  def run(writing_context, world, word_location, parameters)
7
7
  character = world.characters[parameters[:name]]
@@ -0,0 +1,4 @@
1
+ require_relative 'nop'
2
+
3
+ class TyranoDsl::ExportGame::WritingWords::SetTitleScreenBackground < TyranoDsl::ExportGame::WritingWords::Nop
4
+ end