Sha256: b06f017628c174d02a9a23026d0a88ad8e66e8d1c4d6ff2ff1013a250f6788be

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

module FlashSDK
  class CitrusProjectGenerator < 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.4 lib/flashsdk/generators/citrus_project_generator.rb
h4oflashsdk-1.0.3 lib/flashsdk/generators/citrus_project_generator.rb