public void AddAttribute(IGameEntityAttribute attribute) { if (attribute == null) { throw new ArgumentNullException(nameof(attribute)); } attributes[attribute.AttributeType] = attribute; }
public bool Equals(IGameEntityAttribute other) { if (other == null) { return(false); } var attributeTypeEquality = AttributeType.Equals(other.AttributeType); return(attributeTypeEquality); }