You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
458 B
C#

using System.Drawing;
using NetMFAPatcher.Utils;
namespace NetMFAPatcher.MMFParser.ChunkLoaders.Events.Parameters
{
class Colour : ParameterCommon
{
public Color Value;
public Colour(ByteReader reader) : base(reader) { }
public override void Read()
{
var bytes = Reader.ReadBytes(4);
Value = Color.FromArgb(bytes[0], bytes[1], bytes[2]);
}
}
}