mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
20 lines
523 B
C#
20 lines
523 B
C#
using Microsoft.Xna.Framework.Content;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|