Ignore:
Timestamp:
2016-07-07 16:52:52 (3 years ago)
Author:
sieerinn
Message:

Kentän taustakuva on nyt kentän ominaisuutena

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/TiledTileMap.cs

    r7826 r7978  
    4747        } 
    4848 
    49         public void Execute() 
     49        public void Execute(Action<string, string> propertyHandler = null) 
    5050        { 
    5151            var game = (SimplePhysics.Game)Game.Instance; 
     
    5353            game.Level.Width = level.Width * level.TileWidth; 
    5454            game.Level.Height = level.Height * level.TileHeight; 
     55 
     56            foreach (var pair in level.Properties) 
     57            { 
     58                propertyHandler?.Invoke(pair.Key, pair.Value); 
     59            } 
    5560 
    5661            foreach (var tmxLayer in level.Layers) 
Note: See TracChangeset for help on using the changeset viewer.