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.Linq;
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.Xna.Framework;
namespace TShockAPI namespace TShockAPI
{ {
/// <summary> /// <summary>
@ -164,6 +166,17 @@ namespace TShockAPI
/// </summary> /// </summary>
public virtual byte B { get; set; } = 255; 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> /// <summary>
/// The default group attributed to unregistered users. /// The default group attributed to unregistered users.
/// </summary> /// </summary>