Allow sprites to store custom metadata.

This commit is contained in:
Paul Chote
2018-10-01 10:57:00 +00:00
parent 0b89883012
commit dee6d03626
10 changed files with 56 additions and 16 deletions

View File

@@ -12,6 +12,7 @@
using System.Drawing;
using System.IO;
using OpenRA.Graphics;
using OpenRA.Primitives;
namespace OpenRA.Mods.Common.SpriteLoaders
{
@@ -81,8 +82,9 @@ namespace OpenRA.Mods.Common.SpriteLoaders
return tiles;
}
public bool TryParseSprite(Stream s, out ISpriteFrame[] frames)
public bool TryParseSprite(Stream s, out ISpriteFrame[] frames, out TypeDictionary metadata)
{
metadata = null;
if (!IsTmpTD(s))
{
frames = null;