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

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