Skip to content

Game.PSI.ExcludeGeneratedModTagAttribute

Assembly:
Assembly-CSharp.dll

Namespace: Game.PSI

Type:
public class

Base:
System.Attribute

Summary:
An attribute used to mark types or members that should be excluded from any automatic "generated mod tag" processing. In the Cities: Skylines 2 modding context this can be applied to classes, methods or other program elements to indicate that tooling or runtime code that generates or injects mod-identifying tags should ignore the marked target. The attribute itself contains no additional data or behavior — it only serves as a marker.


Fields

  • This type declares no instance or static fields.
    The attribute class is empty and contains no backing state.

Properties

  • This type declares no properties.
    It simply inherits members from System.Attribute.

Constructors

  • public ExcludeGeneratedModTagAttribute()
    Default parameterless constructor. Use this to apply the marker attribute with no additional configuration.

Methods

  • This type does not introduce any new methods beyond those inherited from System.Attribute / System.Object.

Usage Example

using Game.PSI;

// Apply to a class to prevent it from getting an auto-generated mod tag
[ExcludeGeneratedModTag]
public class MyInternalUtility
{
    // ...
}

// Apply to a member if your tooling supports member-level exclusion
public class SomeFeature
{
    [ExcludeGeneratedModTag]
    private void InternalMethod()
    {
        // ...
    }
}

Additional notes: - Because the attribute has no AttributeUsage decoration in the provided source, it uses the default AttributeUsage, which allows it to be applied to all program elements and is inheritable. If you need to restrict usage to specific targets (types, methods, properties, etc.), add an AttributeUsage attribute to the definition. - This attribute is purely declarative; any runtime or build-time behavior depends on tooling or code that checks for its presence.