Sha256: 8ad571bec6eb2e6b9cf55e57c9615df358e234d33564297a3591e867bf95b3cc

Contents?: true

Size: 900 Bytes

Versions: 1

Compression:

Stored size: 900 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' }
    add_param :states, Path, { :default => 'states' }
        
    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

1 entries across 1 versions & 1 rubygems

Version Path
h4oflashsdk-1.0.6 lib/flashsdk/generators/citrus_project_generator.rb