public/js-roguelike-skeleton/src/renderer-layer.js
function RendererLayer(game, type, settings) {
        this.game = game;
        this.type = type;
        var typeData = RendererLayer.Types[type];
        RL.Util.merge(this, typeData);

        for(var key in settings){
            if(this[key] !== void 0){
                this[key] = settings[key];
            }
        }
    }
function RendererLayer(game, type, settings) {
        this.game = game;
        this.type = type;
        var typeData = RendererLayer.Types[type];
        RL.Util.merge(this, typeData);

        for(var key in settings){
            if(this[key] !== void 0){
                this[key] = settings[key];
            }
        }
    }
function RendererLayer ( game , type , settings ) { this . game = game ; this . type = type ; var typeData = RendererLayer . Types [ type ] ; RL . Util . merge ( this , typeData ) ; for ( var key in settings ) { if ( this [ key ] !== void 0 ) { this [ key ] = settings [ key ] ; } } }
Represents a map tile layer to be rendered.
@class RendererLayer
@constructor
@param {Game} game - Game instance this obj is attached to.
@param {String} type - Type of `RendererLayer`. When created this object is merged with the value of `RendererLayer.Types[type]`.
Represents a map tile layer to be rendered .