mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
* Tiled Rework * fix failing tests * really fix failing tests
24 lines
544 B
C#
24 lines
544 B
C#
#region
|
|
|
|
using Microsoft.Xna.Framework.Content;
|
|
|
|
#endregion
|
|
|
|
namespace MonoGame.Extended.Tiled
|
|
{
|
|
public static class ContentReaderExtensions
|
|
{
|
|
public static void ReadTiledMapProperties(this ContentReader reader, TiledMapProperties properties)
|
|
{
|
|
var count = reader.ReadInt32();
|
|
|
|
for (var i = 0; i < count; i++)
|
|
{
|
|
var key = reader.ReadString();
|
|
var value = reader.ReadString();
|
|
properties[key] = value;
|
|
}
|
|
}
|
|
}
|
|
}
|