private int _width, _height; //PIXELS!!! #endregion Fields #region Constructors public CLayer(string name, Actors.CComponent[] components, CTile[] tiles) { NAME = name; _tiles = tiles; _components = new ComponentManager(new ComponentFactory[]{ new ComponentFactory(components) } ); _image = Graphics.CTextures.generateLayerImage(this, tiles); }
public CLayer(Dictionary <string, Graphics.CSprite> atlasCache) { otherImages = atlasCache; _components = new ComponentManager(new ComponentFactory[] { new ComponentFactory(new List <Actors.CComponent>().ToArray()) }); }