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).";