entity as func with id
by shaunxcode
CoffeeScript
Entity = (@id) ->
Entity.prototype.toString = -> @id
x = new Entity 15123123123
console.log "entity is #{x}"
y = {}
y[x] = "help"
console.log y
x.Vector.tail -> @Point.x
by shaunxcode
Entity = (@id) ->
Entity.prototype.toString = -> @id
x = new Entity 15123123123
console.log "entity is #{x}"
y = {}
y[x] = "help"
console.log y
x.Vector.tail -> @Point.x