Added code to convey idea before I write all of it out, also added default config files, everything is subject to change
This commit is contained in:
parent
d0fe76090d
commit
bb2e9559f0
10 changed files with 102 additions and 2 deletions
35
TShockAPI/Group.cs
Normal file
35
TShockAPI/Group.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace TShockAPI
|
||||
{
|
||||
public class Group
|
||||
{
|
||||
private string name;
|
||||
private Group parent = null;
|
||||
|
||||
public Group(string groupName, Group parentGroup = null)
|
||||
{
|
||||
name = groupName;
|
||||
parent = parentGroup;
|
||||
}
|
||||
|
||||
public string GetName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public Group GetParent()
|
||||
{
|
||||
return parent;
|
||||
}
|
||||
|
||||
public bool HasPermission(string permission)
|
||||
{
|
||||
//TODO: implement this
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue