Esempio n. 1
0
 public void DrawTile(Tile tile, Location location, float layerDepth)
 {
     if (lastTileLayerID != tile.Layer.Id)
     {
         DrawMapEvents.OnDrawMapLayer(this, new DrawLayerEventArgs(lastTileLayerID, tile.Layer.Id));
     }
     lastTileLayerID = tile.Layer.Id;
     device.DrawTile(tile, location, layerDepth);
 }
        public void LoadTileSheet(TileSheet tileSheet)
        {
            DrawMapEvents.OnBeforeLoadTileSheet(this, new LoadTilesheetEventArgs(tileSheet, device, textures));

            if (!textures.ContainsKey(tileSheet))
            {
                device.LoadTileSheet(tileSheet);
            }

            DrawMapEvents.OnLoadTileSheet(this, new LoadTilesheetEventArgs(tileSheet, device, textures));
        }
Esempio n. 3
0
        public void LoadTileSheet(TileSheet tileSheet)
        {
            device.LoadTileSheet(tileSheet);

            DrawMapEvents.OnLoadTileSheet(this, new LoadTilesheetEventArgs(tileSheet, device, textures));
        }