mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
21 lines
650 B
C#
21 lines
650 B
C#
using System.Collections.Generic;
|
|
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
|
|
|
|
namespace MonoGame.Extended.Content.Pipeline.Tiled
|
|
{
|
|
public static class ContentWriterExtensions
|
|
{
|
|
// ReSharper disable once SuggestBaseTypeForParameter
|
|
public static void WriteTiledMapProperties(this ContentWriter writer,
|
|
IReadOnlyCollection<TiledMapPropertyContent> value)
|
|
{
|
|
writer.Write(value.Count);
|
|
foreach (var property in value)
|
|
{
|
|
writer.Write(property.Name);
|
|
writer.Write(property.Value);
|
|
}
|
|
}
|
|
}
|
|
}
|