moves Parcel set flag to static functions

This commit is contained in:
Madpeter 2020-04-27 04:20:54 +01:00
parent 6ef5a9c47a
commit 85f62b8b8a

View file

@ -8,6 +8,17 @@ namespace BSB
{
public static class parcel_static
{
public static void ParcelSetFlag(ParcelFlags F, Parcel p, bool set)
{
if (p.Flags.HasFlag(F))
{
p.Flags -= F;
}
if (set == true)
{
p.Flags |= F;
}
}
public static bool has_parcel_perm(Parcel P, CommandsBot bot)
{
bool has_perm = true;