module Entityjs
0 - ok 1 - command not found 2 - not in game directory 3 - file exists
The Compile
class transforms text data into js This includes, xml, tmx, json, coffeescript, etc
The Dirc
class manages all files and folders in the entityjs src and games.
The Page
class renders html pages for the server
Constants
- VERSION
Public Class Methods
default_template()
click to toggle source
# File lib/entityjs.rb, line 63 def self.default_template 'circle' end
eunit_folder()
click to toggle source
# File lib/entityjs.rb, line 59 def self.eunit_folder Entityjs::root+'/public/qunit' end
public_path()
click to toggle source
# File lib/entityjs.rb, line 79 def self.public_path return "#{Entityjs::root}/public" end
root()
click to toggle source
# File lib/entityjs.rb, line 51 def self.root @root = File.expand_path('../..',__FILE__) end
source_folder()
click to toggle source
# File lib/entityjs.rb, line 55 def self.source_folder Entityjs::root+'/src' end
template_path(name=nil)
click to toggle source
# File lib/entityjs.rb, line 67 def self.template_path(name=nil) if name.nil? || name.empty? name = self.default_template end path = "#{Entityjs::root}/templates/#{name}" if File.directory? path return Dir.glob(path+'/*') else return nil end end