From 367427938ce28d8bd50d7cc652211c7b69bfddd0 Mon Sep 17 00:00:00 2001 From: Noikoio Date: Sun, 4 Nov 2018 19:37:52 -0800 Subject: [PATCH] Added equivalent modification from RegexBot --- Kerobot/Common/EntityList.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Kerobot/Common/EntityList.cs b/Kerobot/Common/EntityList.cs index 35925fd..23cec3f 100644 --- a/Kerobot/Common/EntityList.cs +++ b/Kerobot/Common/EntityList.cs @@ -65,8 +65,7 @@ namespace Kerobot.Common } _innerList = list.AsReadOnly(); } - - #region Entity matching + /// /// Checks if the parameters of the given matches with /// any entity specified in this list. @@ -130,10 +129,13 @@ namespace Kerobot.Common } } } - return false; } - #endregion + + /// + /// Determines if this list contains no entries. + /// + public bool IsEmpty() => _innerList.Count == 0; public override string ToString() => $"Entity list contains {_innerList.Count} item(s).";