Delete dead inspector metadata specializations
This commit is contained in:
parent
7ed5b4d7db
commit
1f12fe0f16
7 changed files with 77 additions and 76 deletions
|
|
@ -6,7 +6,6 @@ using System;
|
|||
using System.Linq;
|
||||
using GameCult.Aetheria.State.Unity;
|
||||
|
||||
[Order(-4)]
|
||||
public class StatModifier : Behavior, IInitializableBehavior, IDisposable, IAlwaysUpdatedBehavior
|
||||
{
|
||||
private readonly string _targetBehaviorKind;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
using Unity.Mathematics;
|
||||
using static Unity.Mathematics.math;
|
||||
|
||||
[Order(100)]
|
||||
public class VelocityLimit : Behavior
|
||||
{
|
||||
public float Limit { get; private set; }
|
||||
|
|
|
|||
|
|
@ -18,19 +18,19 @@ public class Faction : INamedEntry
|
|||
[Inspectable]
|
||||
public string ShortName;
|
||||
|
||||
[InspectableText]
|
||||
[Inspectable]
|
||||
public string Description;
|
||||
|
||||
[InspectableTexture]
|
||||
[Inspectable]
|
||||
public string Logo;
|
||||
|
||||
// [Inspectable]
|
||||
// public bool PlayerHostile;
|
||||
|
||||
[InspectableColor]
|
||||
[Inspectable]
|
||||
public float3 PrimaryColor;
|
||||
|
||||
[InspectableColor]
|
||||
[Inspectable]
|
||||
public float3 SecondaryColor;
|
||||
public string GeonameFileKey;
|
||||
public string BossHullItemKey;
|
||||
|
|
@ -40,13 +40,13 @@ public class Faction : INamedEntry
|
|||
|
||||
public Dictionary<string, float> AllegianceByKey = new Dictionary<string, float>();
|
||||
|
||||
[InspectableSoundBank]
|
||||
[Inspectable]
|
||||
public uint OverworldMusic;
|
||||
|
||||
[InspectableSoundBank]
|
||||
[Inspectable]
|
||||
public uint CombatMusic;
|
||||
|
||||
[InspectableSoundBank]
|
||||
[Inspectable]
|
||||
public uint BossMusic;
|
||||
|
||||
public string EntryName
|
||||
|
|
|
|||
|
|
@ -2,67 +2,3 @@ using System;
|
|||
|
||||
[AttributeUsage(AttributeTargets.All, Inherited = false)]
|
||||
public class InspectableAttribute : Attribute { }
|
||||
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public abstract class PreferredInspectorAttribute : InspectableAttribute { }
|
||||
|
||||
public class InspectableTextAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectablePrefabAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectableTextureAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectableTextAssetAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectableTemperatureAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectableAnimationCurveAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectableColorAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectableSoundBankAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectableAudioParameterAttribute : PreferredInspectorAttribute { }
|
||||
public class InspectableSchematicShapeAttribute : PreferredInspectorAttribute { }
|
||||
|
||||
public class InspectableEnumValuesAttribute : PreferredInspectorAttribute
|
||||
{
|
||||
public Type EnumType;
|
||||
|
||||
public InspectableEnumValuesAttribute(Type enumType)
|
||||
{
|
||||
EnumType = enumType;
|
||||
}
|
||||
}
|
||||
|
||||
public class InspectableRangedFloatAttribute : PreferredInspectorAttribute
|
||||
{
|
||||
public readonly float Min, Max;
|
||||
|
||||
public InspectableRangedFloatAttribute(float min, float max)
|
||||
{
|
||||
Min = min;
|
||||
Max = max;
|
||||
}
|
||||
}
|
||||
|
||||
public class InspectableRangedIntAttribute : PreferredInspectorAttribute
|
||||
{
|
||||
public readonly int Min, Max;
|
||||
|
||||
public InspectableRangedIntAttribute(int min, int max)
|
||||
{
|
||||
Min = min;
|
||||
Max = max;
|
||||
}
|
||||
}
|
||||
|
||||
public class OrderAttribute : Attribute
|
||||
{
|
||||
public int Order;
|
||||
|
||||
public OrderAttribute(int order)
|
||||
{
|
||||
Order = order;
|
||||
}
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)]
|
||||
public class InspectorHeaderAttribute : Attribute
|
||||
{
|
||||
public readonly string header;
|
||||
|
||||
public InspectorHeaderAttribute(string header) => this.header = header;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue