コード例 #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);
 }
コード例 #2
0
        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));
        }
コード例 #3
0
        public void LoadTileSheet(TileSheet tileSheet)
        {
            device.LoadTileSheet(tileSheet);

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