Delete dead PropertiesPanel reflection inspector

This commit is contained in:
Meta Vens 2026-06-16 19:38:02 +01:00
commit 9c63c0a1af
13 changed files with 46 additions and 164 deletions

View file

@ -1,26 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
using System;
[AttributeUsage(AttributeTargets.Class)]
public class EntityTypeRestrictionAttribute : Attribute
{
public readonly HullType Type;
public EntityTypeRestrictionAttribute(HullType type)
{
Type = type;
}
}
// public class CategoryAttribute : Attribute
// {
// public readonly Type Type;
//
// public CategoryAttribute(Type type)
// {
// Type = type;
// }
// }

View file

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: f68edb6415593e542b4ba42ff5bec0c0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -5,7 +5,6 @@
using Unity.Mathematics;
using static Unity.Mathematics.math;
[Inspectable, EntityTypeRestriction(HullType.Ship)]
public class AetherDrive : Behavior
{
private readonly float3 _rotorDiameter;

View file

@ -143,11 +143,9 @@ public enum StatModifierType
Multiplier
}
[Inspectable]
public class StatReference
{
public string Target;
[Inspectable]
public string Stat;
}

View file

@ -7,46 +7,34 @@ using System.Collections;
using System.Collections.Generic;
using Unity.Mathematics;
[Inspectable]
public class Faction : INamedEntry
{
public string FactionKey;
[Inspectable]
public string Name;
[Inspectable]
public string ShortName;
[Inspectable]
public string Description;
[Inspectable]
public string Logo;
// [Inspectable]
// public bool PlayerHostile;
[Inspectable]
public float3 PrimaryColor;
[Inspectable]
public float3 SecondaryColor;
public string GeonameFileKey;
public string BossHullItemKey;
[Inspectable]
public int InfluenceDistance = 4;
public Dictionary<string, float> AllegianceByKey = new Dictionary<string, float>();
[Inspectable]
public uint OverworldMusic;
[Inspectable]
public uint CombatMusic;
[Inspectable]
public uint BossMusic;
public string EntryName

View file

@ -11,13 +11,10 @@ using static Unity.Mathematics.math;
[Serializable]
public class ExponentialCurve
{
[Inspectable]
public float Exponent;
[Inspectable]
public float Multiplier;
[Inspectable]
public float Constant;
public float Evaluate(float value) => Multiplier * pow(value, Exponent) + Constant;
@ -26,13 +23,10 @@ public class ExponentialCurve
[Serializable]
public class ExponentialLerp
{
[Inspectable]
public float Exponent;
[Inspectable]
public float Minimum;
[Inspectable]
public float Maximum;
public float Evaluate(float value) => Minimum + pow(saturate(value), Exponent) * (Maximum - Minimum);

View file

@ -10,7 +10,6 @@ using static Unity.Mathematics.math;
using float2 = Unity.Mathematics.float2;
using int2 = Unity.Mathematics.int2;
[Inspectable]
public class Shape
{
public bool[,] Cells;
@ -257,15 +256,14 @@ public class Shape
}
}
[Inspectable]
public class HardpointData : ITintInspector
{
[Inspectable] public HardpointType Type;
[Inspectable] public int2 Position;
[Inspectable] public Shape Shape = new Shape();
[Inspectable] public string Transform;
[Inspectable] public ItemRotation Rotation;
[Inspectable] public float Armor;
public HardpointType Type;
public int2 Position;
public Shape Shape = new Shape();
public string Transform;
public ItemRotation Rotation;
public float Armor;
public override string ToString()
{

View file

@ -1,4 +0,0 @@
using System;
[AttributeUsage(AttributeTargets.All, Inherited = false)]
public class InspectableAttribute : Attribute { }

View file

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: d078a6b39f8c440fabe8d43881207c5d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: