     
   s.join(', ') 
   
+filename = (name) ->
+    if config[name]? then config[name] else "#{name}.kt"
 
 module.exports =
 #

path = require('path')
mkdirp = require('mkdirp')
config = require("#{process.cwd()}/entitas.json")

getType = (arg) ->
  switch arg


    # Systems - Do Not overwrite
    for Name, sy of sys
      fileName = path.join(process.cwd(), location, "systems/#{Name}.kt")
      fs.writeFileSync(fileName, sy.join('\n')) unless fs.existsSync(fileName)
