public void ToInv(Inv inv, bool notify = true) { try { bool perms = false; if (NormalUse) { perms = true; } else if (ModeratorUse && inv.owner.Moderator) { perms = true; } else if (OwnerUse && inv.owner.Owner) { perms = true; } if (perms) { foreach (LoadOutItem item in items.Values) { if (notify) { inv.Notice(item); } inv.Add(item.invItem); } } } catch (Exception ex) { Logger.LogException(ex); } }
public void ToInv(Inv inv, bool notify = true) { try { bool perms = false; if (NormalUse) perms = true; else if (ModeratorUse && inv.owner.Moderator) perms = true; else if (OwnerUse && inv.owner.Owner) perms = true; if (perms) foreach (LoadOutItem item in items.Values) { if (notify) inv.Notice(item); inv.Add(item.invItem); } } catch (Exception ex) { Logger.LogException(ex); } }