diff --git a/src/gaemstone.SourceGen/Structure/ParameterInfo.cs b/src/gaemstone.SourceGen/Structure/ParameterInfo.cs index 3a99022..eeeabdb 100644 --- a/src/gaemstone.SourceGen/Structure/ParameterInfo.cs +++ b/src/gaemstone.SourceGen/Structure/ParameterInfo.cs @@ -87,6 +87,12 @@ public class ParameterInfo : BaseInfo { TermTypes = ImmutableList.Create(Symbol.Type); FieldType = Symbol.Type; + + // If the type of the parameter has the [Tag] attribute, + // the only way to sensibly use it is to check for its (non-)existance. + // (This would also apply to [Relation, Tag] but should be no issue.) + if (Symbol.Type.HasAttribute("gaemstone.ECS.TagAttribute")) isHas = true; + // TODO: Make sure [Tag] is used appropriately. } Source = Get("Source")?.AttributeClass!.TypeArguments[0]