Added a Group.Color
This commit is contained in:
parent
f18243242f
commit
121afa963c
1 changed files with 13 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue