Inheritance: IDisposablePlus
Exemplo n.º 1
0
        private void SetTiledTexture(KeyBase key, Boolean updateDimensions = true)
        {
            if(key == null)
                throw new ArgumentNullException();

            if (Key != null)
                UnregisterAsUserOfTiledTexture();

            Key = key;

            SetNaturalDimensionsFromTile();

            if (updateDimensions)
                SetDimensions();

            RegisterAsUserOfTiledTexture();
        }
Exemplo n.º 2
0
 public Sprite(LayerBase layer, KeyBase key)
     : base(layer)
 {
     InitializeCustom(key);
 }
Exemplo n.º 3
0
 //Needed because of parameters.
 private void InitializeCustom(KeyBase key)
 {
     SetTiledTexture(key);
 }