Delete dead runtime catalog link inspector
This commit is contained in:
parent
f7154e2ccc
commit
57aaec27ea
7 changed files with 12 additions and 21 deletions
|
|
@ -7,7 +7,7 @@ using System.Linq;
|
|||
[Inspectable, Order(-5), RuntimeInspectable]
|
||||
public class ItemUsageData : BehaviorData
|
||||
{
|
||||
[InspectableRuntimeCatalogLink(typeof(SimpleCommodityData)), RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
public Guid Item;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public abstract class WeaponData : BehaviorData
|
|||
[InspectablePrefab, RuntimeCatalogKey(11), RuntimeInspectable]
|
||||
public PerformanceStat Visibility = new PerformanceStat();
|
||||
|
||||
[InspectableRuntimeCatalogLink(typeof(SimpleCommodityData)), RuntimeCatalogKey(12), RuntimeInspectable]
|
||||
[RuntimeCatalogKey(12), RuntimeInspectable]
|
||||
public Guid AmmoType;
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(13)]
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ public class Faction : RuntimeProjectionEntry, INamedEntry
|
|||
|
||||
[InspectableTexture]
|
||||
public string Logo;
|
||||
|
||||
[InspectableRuntimeCatalogLink(typeof(PersonalityAttribute))]
|
||||
public Dictionary<Guid, float> Personality = new Dictionary<Guid, float>();
|
||||
|
||||
// [Inspectable]
|
||||
|
|
@ -33,17 +31,13 @@ public class Faction : RuntimeProjectionEntry, INamedEntry
|
|||
|
||||
[InspectableColor]
|
||||
public float3 SecondaryColor;
|
||||
|
||||
[InspectableRuntimeCatalogLink(typeof(NameFile))]
|
||||
public Guid GeonameFile;
|
||||
|
||||
[InspectableRuntimeCatalogLink(typeof(HullData))]
|
||||
public Guid BossHull;
|
||||
|
||||
[Inspectable]
|
||||
public int InfluenceDistance = 4;
|
||||
|
||||
[InspectableRuntimeCatalogLink(typeof(Faction)), RangedFloat(0, 1)]
|
||||
[RangedFloat(0, 1)]
|
||||
public Dictionary<Guid, float> Allegiance = new Dictionary<Guid, float>();
|
||||
|
||||
[InspectableSoundBank]
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ public abstract class ItemData : RuntimeProjectionEntry, INamedEntry
|
|||
[InspectableText, RuntimeCatalogKey(2)]
|
||||
public string Description;
|
||||
|
||||
[InspectableRuntimeCatalogLink(typeof(Faction)), RuntimeCatalogKey(3)]
|
||||
[RuntimeCatalogKey(3)]
|
||||
public Guid Manufacturer;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(4)]
|
||||
|
|
@ -326,7 +326,7 @@ public abstract class CraftedItemData : ItemData
|
|||
[Inspectable]
|
||||
public class CompoundCommodityData : CraftedItemData
|
||||
{
|
||||
[InspectableRuntimeCatalogLink(typeof(PersonalityAttribute)), RuntimeCatalogKey(10)]
|
||||
[RuntimeCatalogKey(10)]
|
||||
public Dictionary<Guid, float> DemandProfile = new Dictionary<Guid, float>();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(11)]
|
||||
|
|
|
|||
|
|
@ -33,16 +33,6 @@ public class InspectableEnumValuesAttribute : PreferredInspectorAttribute
|
|||
}
|
||||
}
|
||||
|
||||
public class InspectableRuntimeCatalogLinkAttribute : PreferredInspectorAttribute
|
||||
{
|
||||
public readonly Type EntryType;
|
||||
|
||||
public InspectableRuntimeCatalogLinkAttribute(Type entryType)
|
||||
{
|
||||
EntryType = entryType;
|
||||
}
|
||||
}
|
||||
|
||||
public class InspectableRangedFloatAttribute : PreferredInspectorAttribute
|
||||
{
|
||||
public readonly float Min, Max;
|
||||
|
|
|
|||
Loading…
Reference in a new issue