Example #1
0
        public void AddAttribute(IGameEntityAttribute attribute)
        {
            if (attribute == null)
            {
                throw new ArgumentNullException(nameof(attribute));
            }

            attributes[attribute.AttributeType] = attribute;
        }
Example #2
0
        public bool Equals(IGameEntityAttribute other)
        {
            if (other == null)
            {
                return(false);
            }

            var attributeTypeEquality = AttributeType.Equals(other.AttributeType);

            return(attributeTypeEquality);
        }