Class: FlashSDK::CitrusProjectGenerator

Inherits:
ClassGenerator
  • Object
show all
Defined in:
lib/flashsdk/generators/citrus_project_generator.rb

Instance Method Summary collapse

Methods inherited from ClassGenerator

#assets, #bin, #doc, #lib, #package, #skins, #src, #test, #test_class

Instance Method Details

#manifestObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/flashsdk/generators/citrus_project_generator.rb', line 9

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
      file 'CitrusReload.swc'
    end
    directory bin
  end
end