public GameEntityAttribute(GameEntityAttributeType attributeType) { AttributeType = attributeType ?? throw new ArgumentNullException(nameof(attributeType)); }
public IGameEntityAttribute GetAttribute(GameEntityAttributeType attributeType) { attributes.TryGetValue(attributeType, out var attribute); return(attribute); }