Rename runtime projection field keys
This commit is contained in:
parent
57aaec27ea
commit
6a4f3f9ccc
34 changed files with 198 additions and 198 deletions
|
|
@ -8,43 +8,43 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, EntityTypeRestriction(HullType.Ship), RuntimeInspectable]
|
||||
public class AetherDriveData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1)]
|
||||
[Inspectable, RuntimeProjectionKey(1)]
|
||||
public float3 RotorDiameter;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2)]
|
||||
[Inspectable, RuntimeProjectionKey(2)]
|
||||
public float3 RotorMass;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(3), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
|
||||
public PerformanceStat MaximumRpm;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(4)]
|
||||
[Inspectable, RuntimeProjectionKey(4)]
|
||||
public float3 CouplingLambda;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(5)]
|
||||
[Inspectable, RuntimeProjectionKey(5)]
|
||||
public PerformanceStat LambdaMultiplier;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(6), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(6), RuntimeInspectable]
|
||||
public PerformanceStat CouplingEfficiency;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(7), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(7), RuntimeInspectable]
|
||||
public PerformanceStat Torque;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(8), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(8), RuntimeInspectable]
|
||||
public BezierCurve TorqueProfile;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(9), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(9), RuntimeInspectable]
|
||||
public PerformanceStat EnergyDraw;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(10), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(10), RuntimeInspectable]
|
||||
public PerformanceStat PassiveCoupling;
|
||||
|
||||
[InspectableAudioParameter, RuntimeCatalogKey(11), RuntimeInspectable]
|
||||
[InspectableAudioParameter, RuntimeProjectionKey(11), RuntimeInspectable]
|
||||
public uint RpmAudioParameter;
|
||||
|
||||
[InspectableAudioParameter, RuntimeCatalogKey(12), RuntimeInspectable]
|
||||
[InspectableAudioParameter, RuntimeProjectionKey(12), RuntimeInspectable]
|
||||
public uint TorqueRatioAudioParameter;
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(13)]
|
||||
[InspectablePrefab, RuntimeProjectionKey(13)]
|
||||
public string Particles;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ public abstract class PersistentBehaviorData
|
|||
[Inspectable]
|
||||
public abstract class BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(0)]
|
||||
[Inspectable, RuntimeProjectionKey(0)]
|
||||
public int Group;
|
||||
|
||||
public abstract Behavior CreateInstance(EquippedItem item);
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class CapacitorData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Capacity = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
|
||||
public PerformanceStat Efficiency = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,40 +7,40 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class ChargedWeaponData : InstantWeaponData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(21), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(21), RuntimeInspectable]
|
||||
public PerformanceStat ChargeTime = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(22), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(22), RuntimeInspectable]
|
||||
public PerformanceStat ChargeEnergy = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(23), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(23), RuntimeInspectable]
|
||||
public PerformanceStat ChargeHeat = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(24)]
|
||||
[Inspectable, RuntimeProjectionKey(24)]
|
||||
public bool CanFireEarly;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(25)]
|
||||
[Inspectable, RuntimeProjectionKey(25)]
|
||||
public float FailureCharge;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(26)]
|
||||
[Inspectable, RuntimeProjectionKey(26)]
|
||||
public float FailureDamage = 1;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(27)]
|
||||
[Inspectable, RuntimeProjectionKey(27)]
|
||||
public float ChargeFiringDamageMultiplier = 1;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(28)]
|
||||
[Inspectable, RuntimeProjectionKey(28)]
|
||||
public float ChargeFiringSpreadMultiplier = 1;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(29)]
|
||||
[Inspectable, RuntimeProjectionKey(29)]
|
||||
public float ChargeFiringBurstCountMultiplier = 1;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(30)]
|
||||
[Inspectable, RuntimeProjectionKey(30)]
|
||||
public float ChargeFiringVisibilityMultiplier = 1;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(31)]
|
||||
[Inspectable, RuntimeProjectionKey(31)]
|
||||
public float ChargeFiringVelocityMultiplier = 1;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(32)]
|
||||
[Inspectable, RuntimeProjectionKey(32)]
|
||||
public float ChargeFiringHeatMultiplier = 1;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class ConstantWeaponData : WeaponData
|
||||
{
|
||||
[InspectablePrefab, RuntimeCatalogKey(17)]
|
||||
[InspectablePrefab, RuntimeProjectionKey(17)]
|
||||
public float AmmoInterval = 1;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, Order(-10), RuntimeInspectable]
|
||||
public class CooldownData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Cooldown = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ using System.Linq;
|
|||
[Inspectable, Order(-20), RuntimeInspectable]
|
||||
public class EnergyDrawData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat EnergyDraw = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2)]
|
||||
[Inspectable, RuntimeProjectionKey(2)]
|
||||
public bool PerSecond;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ using System.Linq;
|
|||
[Inspectable, Order(10)]
|
||||
public class HeatData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Heat = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2)]
|
||||
[Inspectable, RuntimeProjectionKey(2)]
|
||||
public bool PerSecond;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,16 +7,16 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class InstantWeaponData : WeaponData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(17)]
|
||||
[Inspectable, RuntimeProjectionKey(17)]
|
||||
public PerformanceStat Count = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(18)]
|
||||
[Inspectable, RuntimeProjectionKey(18)]
|
||||
public PerformanceStat BurstTime = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(19), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(19), RuntimeInspectable]
|
||||
public PerformanceStat Cooldown = new PerformanceStat();
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(20)]
|
||||
[InspectablePrefab, RuntimeProjectionKey(20)]
|
||||
public bool SingleAmmoBurst;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Linq;
|
|||
[Inspectable, Order(-5), RuntimeInspectable]
|
||||
public class ItemUsageData : BehaviorData
|
||||
{
|
||||
[RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public Guid Item;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,22 +7,22 @@ using Unity.Mathematics;
|
|||
[Inspectable]
|
||||
public class LauncherData : LockWeaponData
|
||||
{
|
||||
[InspectableAnimationCurve, RuntimeCatalogKey(26)]
|
||||
[InspectableAnimationCurve, RuntimeProjectionKey(26)]
|
||||
public float4[] GuidanceCurve;
|
||||
|
||||
[InspectableAnimationCurve, RuntimeCatalogKey(27)]
|
||||
[InspectableAnimationCurve, RuntimeProjectionKey(27)]
|
||||
public float4[] ThrustCurve;
|
||||
|
||||
[InspectableAnimationCurve, RuntimeCatalogKey(28)]
|
||||
[InspectableAnimationCurve, RuntimeProjectionKey(28)]
|
||||
public float4[] LiftCurve;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(29)]
|
||||
[Inspectable, RuntimeProjectionKey(29)]
|
||||
public PerformanceStat Thrust = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(30)]
|
||||
[Inspectable, RuntimeProjectionKey(30)]
|
||||
public float DodgeFrequency;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(31), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(31), RuntimeInspectable]
|
||||
public PerformanceStat MissileVelocity = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
@ -34,22 +34,22 @@ public class LauncherData : LockWeaponData
|
|||
[Inspectable]
|
||||
public class GuidedWeaponData : InstantWeaponData
|
||||
{
|
||||
[InspectableAnimationCurve, RuntimeCatalogKey(21)]
|
||||
[InspectableAnimationCurve, RuntimeProjectionKey(21)]
|
||||
public float4[] GuidanceCurve;
|
||||
|
||||
[InspectableAnimationCurve, RuntimeCatalogKey(22)]
|
||||
[InspectableAnimationCurve, RuntimeProjectionKey(22)]
|
||||
public float4[] ThrustCurve;
|
||||
|
||||
[InspectableAnimationCurve, RuntimeCatalogKey(23)]
|
||||
[InspectableAnimationCurve, RuntimeProjectionKey(23)]
|
||||
public float4[] LiftCurve;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(24)]
|
||||
[Inspectable, RuntimeProjectionKey(24)]
|
||||
public PerformanceStat Thrust = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(25)]
|
||||
[Inspectable, RuntimeProjectionKey(25)]
|
||||
public float DodgeFrequency;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(26), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(26), RuntimeInspectable]
|
||||
public PerformanceStat MissileVelocity = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,19 +7,19 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class LockWeaponData : InstantWeaponData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(21), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(21), RuntimeInspectable]
|
||||
public PerformanceStat LockSpeed = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(22)]
|
||||
[Inspectable, RuntimeProjectionKey(22)]
|
||||
public PerformanceStat SensorImpact = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(23), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(23), RuntimeInspectable]
|
||||
public PerformanceStat LockAngle = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(24)]
|
||||
[Inspectable, RuntimeProjectionKey(24)]
|
||||
public PerformanceStat DirectionImpact = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(25)]
|
||||
[Inspectable, RuntimeProjectionKey(25)]
|
||||
public PerformanceStat Decay = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -10,16 +10,16 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, Order(10)]
|
||||
public class MiningToolData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1)]
|
||||
[Inspectable, RuntimeProjectionKey(1)]
|
||||
public PerformanceStat DamagePerSecond = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2)]
|
||||
[Inspectable, RuntimeProjectionKey(2)]
|
||||
public PerformanceStat Efficiency = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(3)]
|
||||
[Inspectable, RuntimeProjectionKey(3)]
|
||||
public PerformanceStat Penetration = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(4)]
|
||||
[Inspectable, RuntimeProjectionKey(4)]
|
||||
public PerformanceStat Range = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,22 +8,22 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class RadiatorData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Emissivity = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
|
||||
public PerformanceStat PumpedHeat = new PerformanceStat();
|
||||
|
||||
[InspectableTemperature, RuntimeCatalogKey(3), RuntimeInspectable]
|
||||
[InspectableTemperature, RuntimeProjectionKey(3), RuntimeInspectable]
|
||||
public float TemperatureFloor;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(4), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(4), RuntimeInspectable]
|
||||
public PerformanceStat WasteHeat = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(5), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(5), RuntimeInspectable]
|
||||
public PerformanceStat EnergyUsage = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(6), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(6), RuntimeInspectable]
|
||||
public PerformanceStat ThermalMass = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -12,16 +12,16 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class ReactorData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Charge = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
|
||||
public PerformanceStat Efficiency = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(3), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
|
||||
public PerformanceStat OverloadEfficiency = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(4), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(4), RuntimeInspectable]
|
||||
public PerformanceStat ThrottlingFactor = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class ReflectorData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat CrossSection = new PerformanceStat();
|
||||
|
||||
// [InspectableAnimationCurve, RuntimeCatalogKey(1)]
|
||||
// [InspectableAnimationCurve, RuntimeProjectionKey(1)]
|
||||
// public float4[] VisibilityCurve;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class ResourceScannerData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Range = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
|
||||
public PerformanceStat MinimumDensity = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(3), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
|
||||
public PerformanceStat ScanDuration = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -10,31 +10,31 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class SensorData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(3), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
|
||||
public PerformanceStat Sensitivity = new PerformanceStat();
|
||||
|
||||
[InspectableAnimationCurve, RuntimeCatalogKey(4), RuntimeInspectable]
|
||||
[InspectableAnimationCurve, RuntimeProjectionKey(4), RuntimeInspectable]
|
||||
public BezierCurve SensitivityCurve;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(5), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(5), RuntimeInspectable]
|
||||
public PerformanceStat PingBoost;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(6), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(6), RuntimeInspectable]
|
||||
public PerformanceStat PingEnergy;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(7), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(7), RuntimeInspectable]
|
||||
public PerformanceStat PingVisibility;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(8), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(8), RuntimeInspectable]
|
||||
public PerformanceStat PingRange;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(9), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(9), RuntimeInspectable]
|
||||
public PerformanceStat PingCooldown;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(10)]
|
||||
[Inspectable, RuntimeProjectionKey(10)]
|
||||
public float PingDuration = 2;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(11)]
|
||||
[Inspectable, RuntimeProjectionKey(11)]
|
||||
public float PingRadiusExponent = .5f;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class ShieldData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Efficiency = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
|
||||
public PerformanceStat EnergyUsage = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,16 +7,16 @@ using System.Linq;
|
|||
[Inspectable]
|
||||
public class StatModifierData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1)]
|
||||
[Inspectable, RuntimeProjectionKey(1)]
|
||||
public StatReference Stat = new StatReference();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2)]
|
||||
[Inspectable, RuntimeProjectionKey(2)]
|
||||
public PerformanceStat Modifier = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(3)]
|
||||
[Inspectable, RuntimeProjectionKey(3)]
|
||||
public StatModifierType Type;
|
||||
|
||||
[InspectableType(typeof(BehaviorData)), RuntimeCatalogKey(4)]
|
||||
[InspectableType(typeof(BehaviorData)), RuntimeProjectionKey(4)]
|
||||
public Type RequireBehavior;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
@ -130,9 +130,9 @@ public enum StatModifierType
|
|||
[Inspectable]
|
||||
public class StatReference
|
||||
{
|
||||
[InspectableType(typeof(BehaviorData)), RuntimeCatalogKey(1)]
|
||||
[InspectableType(typeof(BehaviorData)), RuntimeProjectionKey(1)]
|
||||
public string Target;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2)]
|
||||
[Inspectable, RuntimeProjectionKey(2)]
|
||||
public string Stat;
|
||||
}
|
||||
|
|
@ -7,13 +7,13 @@ using System.Linq;
|
|||
[Inspectable, Order(-22)]
|
||||
public class ThermotoggleData : BehaviorData
|
||||
{
|
||||
[InspectableTemperature, RuntimeCatalogKey(1)]
|
||||
[InspectableTemperature, RuntimeProjectionKey(1)]
|
||||
public float TargetTemperature;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2)]
|
||||
[Inspectable, RuntimeProjectionKey(2)]
|
||||
public bool HighPass;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(3)]
|
||||
[Inspectable, RuntimeProjectionKey(3)]
|
||||
public bool Adjustable;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,19 +8,19 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, EntityTypeRestriction(HullType.Ship), RuntimeInspectable]
|
||||
public class ThrusterData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Thrust = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
|
||||
public PerformanceStat Visibility = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(3), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
|
||||
public PerformanceStat Heat = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(4), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(4), RuntimeInspectable]
|
||||
public PerformanceStat EnergyUsage = new PerformanceStat();
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(5)]
|
||||
[InspectablePrefab, RuntimeProjectionKey(5)]
|
||||
public string ParticlesPrefab;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using static Unity.Mathematics.math;
|
|||
[RuntimeInspectable]
|
||||
public class VelocityConversionData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Lambda = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class VelocityLimitData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat TopSpeed = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ using System.Linq;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public class VisibilityData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public PerformanceStat Visibility = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2)]
|
||||
[Inspectable, RuntimeProjectionKey(2)]
|
||||
public PerformanceStat VisibilityDecay = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -11,52 +11,52 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, RuntimeInspectable]
|
||||
public abstract class WeaponData : BehaviorData
|
||||
{
|
||||
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
|
||||
public DamageType DamageType;
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(2), RuntimeInspectable]
|
||||
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
|
||||
public PerformanceStat Damage = new PerformanceStat();
|
||||
|
||||
[InspectableRangedFloat(0,1), RuntimeCatalogKey(3), RuntimeInspectable]
|
||||
[InspectableRangedFloat(0,1), RuntimeProjectionKey(3), RuntimeInspectable]
|
||||
public PerformanceStat Penetration = new PerformanceStat();
|
||||
|
||||
[InspectableRangedFloat(0,1), RuntimeCatalogKey(4)]
|
||||
[InspectableRangedFloat(0,1), RuntimeProjectionKey(4)]
|
||||
public PerformanceStat DamageSpread = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(5)]
|
||||
[Inspectable, RuntimeProjectionKey(5)]
|
||||
public PerformanceStat MinRange = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(6)]
|
||||
[Inspectable, RuntimeProjectionKey(6)]
|
||||
public PerformanceStat Range = new PerformanceStat();
|
||||
|
||||
[InspectableAnimationCurve, RuntimeCatalogKey(7)]
|
||||
[InspectableAnimationCurve, RuntimeProjectionKey(7)]
|
||||
public BezierCurve DamageCurve;
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(8)]
|
||||
[InspectablePrefab, RuntimeProjectionKey(8)]
|
||||
public string EffectPrefab;
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(9), RuntimeInspectable]
|
||||
[InspectablePrefab, RuntimeProjectionKey(9), RuntimeInspectable]
|
||||
public PerformanceStat Energy = new PerformanceStat();
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(10), RuntimeInspectable]
|
||||
[InspectablePrefab, RuntimeProjectionKey(10), RuntimeInspectable]
|
||||
public PerformanceStat Heat = new PerformanceStat();
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(11), RuntimeInspectable]
|
||||
[InspectablePrefab, RuntimeProjectionKey(11), RuntimeInspectable]
|
||||
public PerformanceStat Visibility = new PerformanceStat();
|
||||
|
||||
[RuntimeCatalogKey(12), RuntimeInspectable]
|
||||
[RuntimeProjectionKey(12), RuntimeInspectable]
|
||||
public Guid AmmoType;
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(13)]
|
||||
[InspectablePrefab, RuntimeProjectionKey(13)]
|
||||
public int MagazineSize;
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(14)]
|
||||
[InspectablePrefab, RuntimeProjectionKey(14)]
|
||||
public float ReloadTime = 1;
|
||||
|
||||
[InspectablePrefab, RuntimeCatalogKey(15)]
|
||||
[InspectablePrefab, RuntimeProjectionKey(15)]
|
||||
public PerformanceStat Spread = new PerformanceStat();
|
||||
|
||||
[Inspectable, RuntimeCatalogKey(16)]
|
||||
[Inspectable, RuntimeProjectionKey(16)]
|
||||
public PerformanceStat Velocity = new PerformanceStat();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, Order(1000), RuntimeInspectable]
|
||||
public class WearData : BehaviorData
|
||||
{
|
||||
[InspectableTemperature, RuntimeCatalogKey(1)]
|
||||
[InspectableTemperature, RuntimeProjectionKey(1)]
|
||||
public bool PerSecond = true;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
Loading…
Reference in a new issue