Add webp and json generation options to the map renderer (#10367)

This commit is contained in:
Julian Giebel
2022-08-14 07:50:03 +02:00
committed by GitHub
parent bea1f595d4
commit 1390cd4019
5 changed files with 327 additions and 54 deletions

View File

@@ -0,0 +1,18 @@
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
namespace Content.MapRenderer;
public sealed class RenderedGridImage <T> where T : unmanaged, IPixel<T>
{
public Image<T> Image;
public Vector2 Offset { get; set; } = Vector2.Zero;
public EntityUid? GridUid { get; set; }
public RenderedGridImage(Image<T> image)
{
Image = image;
}
}