Exemple #1
0
        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);
        }
Exemple #2
0
 public CLayer(Dictionary <string, Graphics.CSprite> atlasCache)
 {
     otherImages = atlasCache;
     _components = new ComponentManager(new ComponentFactory[] { new ComponentFactory(new List <Actors.CComponent>().ToArray()) });
 }