Added equivalent modification from RegexBot
This commit is contained in:
parent
8bee71a863
commit
367427938c
1 changed files with 6 additions and 4 deletions
|
@ -65,8 +65,7 @@ namespace Kerobot.Common
|
||||||
}
|
}
|
||||||
_innerList = list.AsReadOnly();
|
_innerList = list.AsReadOnly();
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Entity matching
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Checks if the parameters of the given <see cref="SocketMessage"/> matches with
|
/// Checks if the parameters of the given <see cref="SocketMessage"/> matches with
|
||||||
/// any entity specified in this list.
|
/// any entity specified in this list.
|
||||||
|
@ -130,10 +129,13 @@ namespace Kerobot.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endregion
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines if this list contains no entries.
|
||||||
|
/// </summary>
|
||||||
|
public bool IsEmpty() => _innerList.Count == 0;
|
||||||
|
|
||||||
public override string ToString() => $"Entity list contains {_innerList.Count} item(s).";
|
public override string ToString() => $"Entity list contains {_innerList.Count} item(s).";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue