Adds DBEditor to Master Project
DBEditor can now add new groups
This commit is contained in:
parent
64ca3e7148
commit
ca9c5a5d4a
17 changed files with 2042 additions and 0 deletions
24
DBEditor/Group.cs
Normal file
24
DBEditor/Group.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue