Added compatibiliy shims for old method signatures without which existing compiled plugins will error with missing method ...
This fixes #410
This commit is contained in:
parent
d813a60060
commit
b6b5a2f1ca
5 changed files with 69 additions and 5 deletions
|
|
@ -23,6 +23,9 @@ namespace TShockAPI
|
|||
{
|
||||
public class Group
|
||||
{
|
||||
// NOTE: Using a const still suffers from needing to recompile to change the default
|
||||
// ideally we would use a static but this means it can't be used for the default parameter :(
|
||||
public const string defaultChatColor = "255.255.255";
|
||||
public readonly List<string> permissions = new List<string>();
|
||||
public readonly List<string> negatedpermissions = new List<string>();
|
||||
|
||||
|
|
@ -106,6 +109,14 @@ namespace TShockAPI
|
|||
public byte G = 255;
|
||||
public byte B = 255;
|
||||
|
||||
#if COMPAT_SIGS
|
||||
[Obsolete("This constructor is for signature compatibility for external code only")]
|
||||
public Group(string groupname, Group parentgroup, string chatcolor)
|
||||
: this(groupname, parentgroup, chatcolor, null)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
public Group(string groupname, Group parentgroup = null, string chatcolor = "255,255,255", string permissions = null)
|
||||
{
|
||||
Name = groupname;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue