Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @package "App", ->
  2.     @package "Game", ->
  3.         class @Main
  4.             constructor : (@val) ->
  5.             toString : -> '[object Main]'
  6.  
  7.         class @Map
  8.             toString : -> '[object Map]'
  9.  
  10.     class @Test
  11.         toString : -> '[object Test]'
  12.  
  13.     Sandbox = @module ->
  14.         private = 10
  15.         @fire = ( event ) =>
  16.             # ...
  17.  
  18. App.Sandbox.fire('load')
  19.  
  20. new App.Game.Main( 10 )
  21. new App.Game.Map
  22.  
  23. App.Test::fire = ( ev ) ->
  24.     App.Sandbox.fire( ev )
  25.  
  26. wth App.Sandbox, ->
  27.     value = 42
  28.     @toString = ->
  29.         value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement