mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
9e359fb750
* Tiled Rework * fix failing tests * really fix failing tests
17 lines
550 B
C#
17 lines
550 B
C#
//using System.Linq;
|
|
//using MonoGame.Extended.Tiled;
|
|
|
|
//namespace MonoGame.Extended.Collisions
|
|
//{
|
|
// public static class CollisionWorldExtensions
|
|
// {
|
|
// public static CollisionGrid CreateGrid(this CollisionWorld world, TiledTileLayer tileLayer)
|
|
// {
|
|
// var data = tileLayer.Tiles
|
|
// .Select(t => (int)t.GlobalIdentifier)
|
|
// .ToArray();
|
|
|
|
// return world.CreateGrid(data, tileLayer.Width, tileLayer.Height, tileLayer.TileWidth, tileLayer.TileHeight);
|
|
// }
|
|
// }
|
|
//} |