Skip to content

Commit

Permalink
Make attributes non sealed
Browse files Browse the repository at this point in the history
  • Loading branch information
vanifatovvlad committed Mar 12, 2023
1 parent ec71246 commit 3c36b7b
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Runtime/Attributes/AssetsOnlyAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage((AttributeTargets.Field | AttributeTargets.Property))]
[Conditional("UNITY_EDITOR")]
public sealed class AssetsOnlyAttribute : Attribute
public class AssetsOnlyAttribute : Attribute
{

}
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/ButtonAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class ButtonAttribute : Attribute
public class ButtonAttribute : Attribute
{
public ButtonAttribute()
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/DropdownAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class DropdownAttribute : Attribute
public class DropdownAttribute : Attribute
{
public string Values { get; }

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/EnumToggleButtonsAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage((AttributeTargets.Field | AttributeTargets.Property))]
[Conditional("UNITY_EDITOR")]
public sealed class EnumToggleButtonsAttribute : Attribute
public class EnumToggleButtonsAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/GUIColorAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class GUIColorAttribute : Attribute
public class GUIColorAttribute : Attribute
{
public float R { get; }
public float G { get; }
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/HideLabelAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class HideLabelAttribute : Attribute
public class HideLabelAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/HideMonoScriptAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage((AttributeTargets.Class | AttributeTargets.Struct))]
[Conditional("UNITY_EDITOR")]
public sealed class HideMonoScriptAttribute : Attribute
public class HideMonoScriptAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/HideReferencePickerAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class HideReferencePickerAttribute : Attribute
public class HideReferencePickerAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/IndentAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class IndentAttribute : Attribute
public class IndentAttribute : Attribute
{
public int Indent { get; }

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/InlineEditorAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class InlineEditorAttribute : Attribute
public class InlineEditorAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/InlinePropertyAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class InlinePropertyAttribute : Attribute
public class InlinePropertyAttribute : Attribute
{
public float LabelWidth { get; set; }
}
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/LabelTextAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class LabelTextAttribute : Attribute
public class LabelTextAttribute : Attribute
{
public string Text { get; }

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/LabelWidthAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class LabelWidthAttribute : Attribute
public class LabelWidthAttribute : Attribute
{
public float Width { get; }

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/OnValueChangedAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class OnValueChangedAttribute : Attribute
public class OnValueChangedAttribute : Attribute
{
public OnValueChangedAttribute(string method)
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/PropertyOrderAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertyOrderAttribute : Attribute
public class PropertyOrderAttribute : Attribute
{
public int Order { get; }

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/PropertySpaceAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertySpaceAttribute : Attribute
public class PropertySpaceAttribute : Attribute
{
public float SpaceBefore { get; set; }
public float SpaceAfter { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/PropertyTooltipAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class PropertyTooltipAttribute : Attribute
public class PropertyTooltipAttribute : Attribute
{
public string Tooltip { get; }

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/ReadOnlyAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TriInspector
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property |
AttributeTargets.Class | AttributeTargets.Struct)]
[Conditional("UNITY_EDITOR")]
public sealed class ReadOnlyAttribute : Attribute
public class ReadOnlyAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/SceneAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class SceneAttribute : Attribute
public class SceneAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/SceneObjectsOnlyAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage((AttributeTargets.Field | AttributeTargets.Property))]
[Conditional("UNITY_EDITOR")]
public sealed class SceneObjectsOnlyAttribute : Attribute
public class SceneObjectsOnlyAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/ShowDrawerChainAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class ShowDrawerChainAttribute : Attribute
public class ShowDrawerChainAttribute : Attribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/TableListAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class TableListAttribute : ListDrawerSettingsAttribute
public class TableListAttribute : ListDrawerSettingsAttribute
{
}
}
2 changes: 1 addition & 1 deletion Runtime/Attributes/TitleAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
[Conditional("UNITY_EDITOR")]
public sealed class TitleAttribute : Attribute
public class TitleAttribute : Attribute
{
public string Title { get; }
public bool HorizontalLine { get; set; } = true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Attributes/ValidateInputAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
public sealed class ValidateInputAttribute : Attribute
public class ValidateInputAttribute : Attribute
{
public string Method { get; }

Expand Down

0 comments on commit 3c36b7b

Please sign in to comment.