Adds group manager, editable only by DB program.

This commit is contained in:
Twitchy 2011-07-11 20:33:03 +12:00
parent b5ca97ae35
commit 0997b5bd5d
4 changed files with 121 additions and 76 deletions

View file

@ -22,11 +22,12 @@ namespace TShockAPI
{
public class Group
{
private readonly List<string> permissions = new List<string>();
public readonly List<string> permissions = new List<string>();
private readonly List<string> negatedpermissions = new List<string>();
public string Name { get; protected set; }
public Group Parent { get; protected set; }
public int Order { get; set; }
public Group(string groupname, Group parentgroup = null)
{