Sha256: c0bd9da1472a8f257ae3c9135b84b00d7bcd345eeafeaaba08e39c2ca9bf867b

Contents?: true

Size: 844 Bytes

Versions: 2

Compression:

Stored size: 844 Bytes

Contents

module FlashSDK
  class ProjectGenerator < ClassGenerator

    add_param :css, Path, { :default => 'css' }
    add_param :images, Path, { :default => 'images' }
    add_param :fonts, Path, { :default => 'fonts' }    
        
    def manifest
      directory input do
        template 'rakefile.rb','citrus_rakefile.rb'
        template 'Gemfile'

        directory src do
          template "#{input.camel_case}.as", 'CitrusActionScript3MainClass.as'
          directory states do
            template "GameState.as", 'CitrusActionScript3GameState.as'
          end
          template "#{test_runner_name}.as", 'ActionScript3RunnerClass.as'
        end

        directory assets 

        # Create empty directories:
        directory lib do
          template 'CitrusReload.swf'
        end
        directory bin
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
h4oflashsdk-1.0.2 lib/flashsdk/generators/citrus_project_generator.rb
h4oflashsdk-1.0.1 lib/flashsdk/generators/citrus_project_generator.rb