class TyranoDsl::ExportGame::ElementsWriters::BackgroundWriter
Write a background
Public Instance Methods
init_actions()
click to toggle source
@return [Array]
# File lib/tyrano_dsl/export_game/elements_writers/background_writer.rb, line 12 def init_actions [ TyranoDsl::ExportGame::FileActions::ClearDirectory.new(TyranoDsl::Elements::Background::BACKGROUND_DIRECTORY) ] end
write(background)
click to toggle source
@param [TyranoDsl::Elements::Background] background @return [Array]
# File lib/tyrano_dsl/export_game/elements_writers/background_writer.rb, line 20 def write(background) log {"Writing background [#{background.name}]"} [ TyranoDsl::ExportGame::FileActions::FileCopy.new( background.image_path, background.target_long_file_name ) ] end