Adds DBEditor to Master Project

DBEditor can now add new groups
This commit is contained in:
Steven French 2011-07-23 14:41:03 +12:00
parent 64ca3e7148
commit ca9c5a5d4a
17 changed files with 2042 additions and 0 deletions

24
DBEditor/Group.cs Normal file
View file

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
namespace TShockDBEditor
{
public class Group
{
public readonly List<string> permissions = new List<string>();
private readonly List<string> negatedpermissions = new List<string>();
public int ID { get; protected set; }
public string Name { get; set; }
public Group Parent { get; set; }
public int Order { get; set; }
public Group(int id, string groupname, int order, Group parentgroup = null)
{
Order = order;
ID = id;
Name = groupname;
Parent = parentgroup;
}
}
}