Added a Group.Color

This commit is contained in:
AkjaHAsLk1IALk0MasH 2023-06-06 16:18:48 +07:00
parent f18243242f
commit 121afa963c

View file

@ -20,6 +20,8 @@ using System;
using System.Linq;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
namespace TShockAPI
{
/// <summary>
@ -164,6 +166,17 @@ namespace TShockAPI
/// </summary>
public virtual byte B { get; set; } = 255;
public virtual Color Color
{
get => new Color(R, G, B);
set
{
R = value.R;
G = value.G;
B = value.B;
}
}
/// <summary>
/// The default group attributed to unregistered users.
/// </summary>