Rename runtime projection keys to legacy payload keys

This commit is contained in:
Meta Vens 2026-06-13 21:19:53 +01:00
commit 3d2dfcd82d
34 changed files with 195 additions and 195 deletions

View file

@ -8,43 +8,43 @@ using static Unity.Mathematics.math;
[Inspectable, EntityTypeRestriction(HullType.Ship), RuntimeInspectable]
public class AetherDriveData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1)]
[Inspectable, LegacyPayloadKey(1)]
public float3 RotorDiameter;
[Inspectable, RuntimeProjectionKey(2)]
[Inspectable, LegacyPayloadKey(2)]
public float3 RotorMass;
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(3), RuntimeInspectable]
public PerformanceStat MaximumRpm;
[Inspectable, RuntimeProjectionKey(4)]
[Inspectable, LegacyPayloadKey(4)]
public float3 CouplingLambda;
[Inspectable, RuntimeProjectionKey(5)]
[Inspectable, LegacyPayloadKey(5)]
public PerformanceStat LambdaMultiplier;
[Inspectable, RuntimeProjectionKey(6), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(6), RuntimeInspectable]
public PerformanceStat CouplingEfficiency;
[Inspectable, RuntimeProjectionKey(7), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(7), RuntimeInspectable]
public PerformanceStat Torque;
[Inspectable, RuntimeProjectionKey(8), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(8), RuntimeInspectable]
public BezierCurve TorqueProfile;
[Inspectable, RuntimeProjectionKey(9), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(9), RuntimeInspectable]
public PerformanceStat EnergyDraw;
[Inspectable, RuntimeProjectionKey(10), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(10), RuntimeInspectable]
public PerformanceStat PassiveCoupling;
[InspectableAudioParameter, RuntimeProjectionKey(11), RuntimeInspectable]
[InspectableAudioParameter, LegacyPayloadKey(11), RuntimeInspectable]
public uint RpmAudioParameter;
[InspectableAudioParameter, RuntimeProjectionKey(12), RuntimeInspectable]
[InspectableAudioParameter, LegacyPayloadKey(12), RuntimeInspectable]
public uint TorqueRatioAudioParameter;
[InspectablePrefab, RuntimeProjectionKey(13)]
[InspectablePrefab, LegacyPayloadKey(13)]
public string Particles;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -146,7 +146,7 @@ public abstract class PersistentBehaviorData
[Inspectable]
public abstract class BehaviorData
{
[Inspectable, RuntimeProjectionKey(0)]
[Inspectable, LegacyPayloadKey(0)]
public int Group;
public abstract Behavior CreateInstance(EquippedItem item);

View file

@ -9,10 +9,10 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class CapacitorData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Capacity = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(2), RuntimeInspectable]
public PerformanceStat Efficiency = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,40 +7,40 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class ChargedWeaponData : InstantWeaponData
{
[Inspectable, RuntimeProjectionKey(21), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(21), RuntimeInspectable]
public PerformanceStat ChargeTime = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(22), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(22), RuntimeInspectable]
public PerformanceStat ChargeEnergy = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(23), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(23), RuntimeInspectable]
public PerformanceStat ChargeHeat = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(24)]
[Inspectable, LegacyPayloadKey(24)]
public bool CanFireEarly;
[Inspectable, RuntimeProjectionKey(25)]
[Inspectable, LegacyPayloadKey(25)]
public float FailureCharge;
[Inspectable, RuntimeProjectionKey(26)]
[Inspectable, LegacyPayloadKey(26)]
public float FailureDamage = 1;
[Inspectable, RuntimeProjectionKey(27)]
[Inspectable, LegacyPayloadKey(27)]
public float ChargeFiringDamageMultiplier = 1;
[Inspectable, RuntimeProjectionKey(28)]
[Inspectable, LegacyPayloadKey(28)]
public float ChargeFiringSpreadMultiplier = 1;
[Inspectable, RuntimeProjectionKey(29)]
[Inspectable, LegacyPayloadKey(29)]
public float ChargeFiringBurstCountMultiplier = 1;
[Inspectable, RuntimeProjectionKey(30)]
[Inspectable, LegacyPayloadKey(30)]
public float ChargeFiringVisibilityMultiplier = 1;
[Inspectable, RuntimeProjectionKey(31)]
[Inspectable, LegacyPayloadKey(31)]
public float ChargeFiringVelocityMultiplier = 1;
[Inspectable, RuntimeProjectionKey(32)]
[Inspectable, LegacyPayloadKey(32)]
public float ChargeFiringHeatMultiplier = 1;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -9,7 +9,7 @@ using static Unity.Mathematics.math;
[Inspectable]
public class ConstantWeaponData : WeaponData
{
[InspectablePrefab, RuntimeProjectionKey(17)]
[InspectablePrefab, LegacyPayloadKey(17)]
public float AmmoInterval = 1;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -10,7 +10,7 @@ using static Unity.Mathematics.math;
[Inspectable, Order(-10), RuntimeInspectable]
public class CooldownData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Cooldown = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,10 +7,10 @@ using System.Linq;
[Inspectable, Order(-20), RuntimeInspectable]
public class EnergyDrawData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat EnergyDraw = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2)]
[Inspectable, LegacyPayloadKey(2)]
public bool PerSecond;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,10 +7,10 @@ using System.Linq;
[Inspectable, Order(10)]
public class HeatData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Heat = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2)]
[Inspectable, LegacyPayloadKey(2)]
public bool PerSecond;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,16 +7,16 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class InstantWeaponData : WeaponData
{
[Inspectable, RuntimeProjectionKey(17)]
[Inspectable, LegacyPayloadKey(17)]
public PerformanceStat Count = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(18)]
[Inspectable, LegacyPayloadKey(18)]
public PerformanceStat BurstTime = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(19), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(19), RuntimeInspectable]
public PerformanceStat Cooldown = new PerformanceStat();
[InspectablePrefab, RuntimeProjectionKey(20)]
[InspectablePrefab, LegacyPayloadKey(20)]
public bool SingleAmmoBurst;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,7 +7,7 @@ using System.Linq;
[Inspectable, Order(-5), RuntimeInspectable]
public class ItemUsageData : BehaviorData
{
[RuntimeProjectionKey(1), RuntimeInspectable]
[LegacyPayloadKey(1), RuntimeInspectable]
public Guid Item;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,22 +7,22 @@ using Unity.Mathematics;
[Inspectable]
public class LauncherData : LockWeaponData
{
[InspectableAnimationCurve, RuntimeProjectionKey(26)]
[InspectableAnimationCurve, LegacyPayloadKey(26)]
public float4[] GuidanceCurve;
[InspectableAnimationCurve, RuntimeProjectionKey(27)]
[InspectableAnimationCurve, LegacyPayloadKey(27)]
public float4[] ThrustCurve;
[InspectableAnimationCurve, RuntimeProjectionKey(28)]
[InspectableAnimationCurve, LegacyPayloadKey(28)]
public float4[] LiftCurve;
[Inspectable, RuntimeProjectionKey(29)]
[Inspectable, LegacyPayloadKey(29)]
public PerformanceStat Thrust = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(30)]
[Inspectable, LegacyPayloadKey(30)]
public float DodgeFrequency;
[Inspectable, RuntimeProjectionKey(31), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(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, RuntimeProjectionKey(21)]
[InspectableAnimationCurve, LegacyPayloadKey(21)]
public float4[] GuidanceCurve;
[InspectableAnimationCurve, RuntimeProjectionKey(22)]
[InspectableAnimationCurve, LegacyPayloadKey(22)]
public float4[] ThrustCurve;
[InspectableAnimationCurve, RuntimeProjectionKey(23)]
[InspectableAnimationCurve, LegacyPayloadKey(23)]
public float4[] LiftCurve;
[Inspectable, RuntimeProjectionKey(24)]
[Inspectable, LegacyPayloadKey(24)]
public PerformanceStat Thrust = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(25)]
[Inspectable, LegacyPayloadKey(25)]
public float DodgeFrequency;
[Inspectable, RuntimeProjectionKey(26), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(26), RuntimeInspectable]
public PerformanceStat MissileVelocity = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,19 +7,19 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class LockWeaponData : InstantWeaponData
{
[Inspectable, RuntimeProjectionKey(21), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(21), RuntimeInspectable]
public PerformanceStat LockSpeed = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(22)]
[Inspectable, LegacyPayloadKey(22)]
public PerformanceStat SensorImpact = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(23), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(23), RuntimeInspectable]
public PerformanceStat LockAngle = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(24)]
[Inspectable, LegacyPayloadKey(24)]
public PerformanceStat DirectionImpact = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(25)]
[Inspectable, LegacyPayloadKey(25)]
public PerformanceStat Decay = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -10,16 +10,16 @@ using static Unity.Mathematics.math;
[Inspectable, Order(10)]
public class MiningToolData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1)]
[Inspectable, LegacyPayloadKey(1)]
public PerformanceStat DamagePerSecond = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2)]
[Inspectable, LegacyPayloadKey(2)]
public PerformanceStat Efficiency = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(3)]
[Inspectable, LegacyPayloadKey(3)]
public PerformanceStat Penetration = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(4)]
[Inspectable, LegacyPayloadKey(4)]
public PerformanceStat Range = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -8,22 +8,22 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class RadiatorData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Emissivity = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(2), RuntimeInspectable]
public PerformanceStat PumpedHeat = new PerformanceStat();
[InspectableTemperature, RuntimeProjectionKey(3), RuntimeInspectable]
[InspectableTemperature, LegacyPayloadKey(3), RuntimeInspectable]
public float TemperatureFloor;
[Inspectable, RuntimeProjectionKey(4), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(4), RuntimeInspectable]
public PerformanceStat WasteHeat = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(5), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(5), RuntimeInspectable]
public PerformanceStat EnergyUsage = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(6), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(6), RuntimeInspectable]
public PerformanceStat ThermalMass = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -12,16 +12,16 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class ReactorData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Charge = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(2), RuntimeInspectable]
public PerformanceStat Efficiency = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(3), RuntimeInspectable]
public PerformanceStat OverloadEfficiency = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(4), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(4), RuntimeInspectable]
public PerformanceStat ThrottlingFactor = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -8,10 +8,10 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class ReflectorData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat CrossSection = new PerformanceStat();
// [InspectableAnimationCurve, RuntimeProjectionKey(1)]
// [InspectableAnimationCurve, LegacyPayloadKey(1)]
// public float4[] VisibilityCurve;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -10,13 +10,13 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class ResourceScannerData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Range = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(2), RuntimeInspectable]
public PerformanceStat MinimumDensity = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(3), RuntimeInspectable]
public PerformanceStat ScanDuration = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -10,31 +10,31 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class SensorData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(3), RuntimeInspectable]
public PerformanceStat Sensitivity = new PerformanceStat();
[InspectableAnimationCurve, RuntimeProjectionKey(4), RuntimeInspectable]
[InspectableAnimationCurve, LegacyPayloadKey(4), RuntimeInspectable]
public BezierCurve SensitivityCurve;
[Inspectable, RuntimeProjectionKey(5), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(5), RuntimeInspectable]
public PerformanceStat PingBoost;
[Inspectable, RuntimeProjectionKey(6), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(6), RuntimeInspectable]
public PerformanceStat PingEnergy;
[Inspectable, RuntimeProjectionKey(7), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(7), RuntimeInspectable]
public PerformanceStat PingVisibility;
[Inspectable, RuntimeProjectionKey(8), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(8), RuntimeInspectable]
public PerformanceStat PingRange;
[Inspectable, RuntimeProjectionKey(9), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(9), RuntimeInspectable]
public PerformanceStat PingCooldown;
[Inspectable, RuntimeProjectionKey(10)]
[Inspectable, LegacyPayloadKey(10)]
public float PingDuration = 2;
[Inspectable, RuntimeProjectionKey(11)]
[Inspectable, LegacyPayloadKey(11)]
public float PingRadiusExponent = .5f;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -8,10 +8,10 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class ShieldData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Efficiency = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(2), RuntimeInspectable]
public PerformanceStat EnergyUsage = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,16 +7,16 @@ using System.Linq;
[Inspectable]
public class StatModifierData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1)]
[Inspectable, LegacyPayloadKey(1)]
public StatReference Stat = new StatReference();
[Inspectable, RuntimeProjectionKey(2)]
[Inspectable, LegacyPayloadKey(2)]
public PerformanceStat Modifier = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(3)]
[Inspectable, LegacyPayloadKey(3)]
public StatModifierType Type;
[InspectableType(typeof(BehaviorData)), RuntimeProjectionKey(4)]
[InspectableType(typeof(BehaviorData)), LegacyPayloadKey(4)]
public Type RequireBehavior;
public override Behavior CreateInstance(EquippedItem item)
@ -130,9 +130,9 @@ public enum StatModifierType
[Inspectable]
public class StatReference
{
[InspectableType(typeof(BehaviorData)), RuntimeProjectionKey(1)]
[InspectableType(typeof(BehaviorData)), LegacyPayloadKey(1)]
public string Target;
[Inspectable, RuntimeProjectionKey(2)]
[Inspectable, LegacyPayloadKey(2)]
public string Stat;
}

View file

@ -7,13 +7,13 @@ using System.Linq;
[Inspectable, Order(-22)]
public class ThermotoggleData : BehaviorData
{
[InspectableTemperature, RuntimeProjectionKey(1)]
[InspectableTemperature, LegacyPayloadKey(1)]
public float TargetTemperature;
[Inspectable, RuntimeProjectionKey(2)]
[Inspectable, LegacyPayloadKey(2)]
public bool HighPass;
[Inspectable, RuntimeProjectionKey(3)]
[Inspectable, LegacyPayloadKey(3)]
public bool Adjustable;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -8,19 +8,19 @@ using static Unity.Mathematics.math;
[Inspectable, EntityTypeRestriction(HullType.Ship), RuntimeInspectable]
public class ThrusterData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Thrust = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(2), RuntimeInspectable]
public PerformanceStat Visibility = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(3), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(3), RuntimeInspectable]
public PerformanceStat Heat = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(4), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(4), RuntimeInspectable]
public PerformanceStat EnergyUsage = new PerformanceStat();
[InspectablePrefab, RuntimeProjectionKey(5)]
[InspectablePrefab, LegacyPayloadKey(5)]
public string ParticlesPrefab;
public override Behavior CreateInstance(EquippedItem item)

View file

@ -8,7 +8,7 @@ using static Unity.Mathematics.math;
[RuntimeInspectable]
public class VelocityConversionData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Lambda = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -8,7 +8,7 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public class VelocityLimitData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat TopSpeed = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -7,10 +7,10 @@ using System.Linq;
[Inspectable, RuntimeInspectable]
public class VisibilityData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public PerformanceStat Visibility = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(2)]
[Inspectable, LegacyPayloadKey(2)]
public PerformanceStat VisibilityDecay = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)

View file

@ -11,52 +11,52 @@ using static Unity.Mathematics.math;
[Inspectable, RuntimeInspectable]
public abstract class WeaponData : BehaviorData
{
[Inspectable, RuntimeProjectionKey(1), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(1), RuntimeInspectable]
public DamageType DamageType;
[Inspectable, RuntimeProjectionKey(2), RuntimeInspectable]
[Inspectable, LegacyPayloadKey(2), RuntimeInspectable]
public PerformanceStat Damage = new PerformanceStat();
[InspectableRangedFloat(0,1), RuntimeProjectionKey(3), RuntimeInspectable]
[InspectableRangedFloat(0,1), LegacyPayloadKey(3), RuntimeInspectable]
public PerformanceStat Penetration = new PerformanceStat();
[InspectableRangedFloat(0,1), RuntimeProjectionKey(4)]
[InspectableRangedFloat(0,1), LegacyPayloadKey(4)]
public PerformanceStat DamageSpread = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(5)]
[Inspectable, LegacyPayloadKey(5)]
public PerformanceStat MinRange = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(6)]
[Inspectable, LegacyPayloadKey(6)]
public PerformanceStat Range = new PerformanceStat();
[InspectableAnimationCurve, RuntimeProjectionKey(7)]
[InspectableAnimationCurve, LegacyPayloadKey(7)]
public BezierCurve DamageCurve;
[InspectablePrefab, RuntimeProjectionKey(8)]
[InspectablePrefab, LegacyPayloadKey(8)]
public string EffectPrefab;
[InspectablePrefab, RuntimeProjectionKey(9), RuntimeInspectable]
[InspectablePrefab, LegacyPayloadKey(9), RuntimeInspectable]
public PerformanceStat Energy = new PerformanceStat();
[InspectablePrefab, RuntimeProjectionKey(10), RuntimeInspectable]
[InspectablePrefab, LegacyPayloadKey(10), RuntimeInspectable]
public PerformanceStat Heat = new PerformanceStat();
[InspectablePrefab, RuntimeProjectionKey(11), RuntimeInspectable]
[InspectablePrefab, LegacyPayloadKey(11), RuntimeInspectable]
public PerformanceStat Visibility = new PerformanceStat();
[RuntimeProjectionKey(12), RuntimeInspectable]
[LegacyPayloadKey(12), RuntimeInspectable]
public Guid AmmoType;
[InspectablePrefab, RuntimeProjectionKey(13)]
[InspectablePrefab, LegacyPayloadKey(13)]
public int MagazineSize;
[InspectablePrefab, RuntimeProjectionKey(14)]
[InspectablePrefab, LegacyPayloadKey(14)]
public float ReloadTime = 1;
[InspectablePrefab, RuntimeProjectionKey(15)]
[InspectablePrefab, LegacyPayloadKey(15)]
public PerformanceStat Spread = new PerformanceStat();
[Inspectable, RuntimeProjectionKey(16)]
[Inspectable, LegacyPayloadKey(16)]
public PerformanceStat Velocity = new PerformanceStat();
}

View file

@ -9,7 +9,7 @@ using static Unity.Mathematics.math;
[Inspectable, Order(1000), RuntimeInspectable]
public class WearData : BehaviorData
{
[InspectableTemperature, RuntimeProjectionKey(1)]
[InspectableTemperature, LegacyPayloadKey(1)]
public bool PerSecond = true;
public override Behavior CreateInstance(EquippedItem item)