Delete legacy payload key annotations
This commit is contained in:
parent
f967a3b292
commit
399efc3851
34 changed files with 199 additions and 236 deletions
|
|
@ -8,43 +8,43 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, EntityTypeRestriction(HullType.Ship)]
|
||||
public class AetherDriveConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public float3 RotorDiameter;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public float3 RotorMass;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(3)]
|
||||
[Inspectable]
|
||||
public PerformanceStat MaximumRpm;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(4)]
|
||||
[Inspectable]
|
||||
public float3 CouplingLambda;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(5)]
|
||||
[Inspectable]
|
||||
public PerformanceStat LambdaMultiplier;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(6)]
|
||||
[Inspectable]
|
||||
public PerformanceStat CouplingEfficiency;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(7)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Torque;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(8)]
|
||||
[Inspectable]
|
||||
public BezierCurve TorqueProfile;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(9)]
|
||||
[Inspectable]
|
||||
public PerformanceStat EnergyDraw;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(10)]
|
||||
[Inspectable]
|
||||
public PerformanceStat PassiveCoupling;
|
||||
|
||||
[InspectableAudioParameter, LegacyPayloadKey(11)]
|
||||
[InspectableAudioParameter]
|
||||
public uint RpmAudioParameter;
|
||||
|
||||
[InspectableAudioParameter, LegacyPayloadKey(12)]
|
||||
[InspectableAudioParameter]
|
||||
public uint TorqueRatioAudioParameter;
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(13)]
|
||||
[InspectablePrefab]
|
||||
public string Particles;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ public abstract class RuntimeBehaviorConfig
|
|||
{
|
||||
public string Kind { get; set; } = "";
|
||||
|
||||
[Inspectable, LegacyPayloadKey(0)]
|
||||
[Inspectable]
|
||||
public int Group;
|
||||
|
||||
public abstract Behavior CreateInstance(EquippedItem item);
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class CapacitorConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Capacity = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Efficiency = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,40 +7,40 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class ChargedWeaponConfig : InstantWeaponConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(21)]
|
||||
[Inspectable]
|
||||
public PerformanceStat ChargeTime = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(22)]
|
||||
[Inspectable]
|
||||
public PerformanceStat ChargeEnergy = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(23)]
|
||||
[Inspectable]
|
||||
public PerformanceStat ChargeHeat = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(24)]
|
||||
[Inspectable]
|
||||
public bool CanFireEarly;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(25)]
|
||||
[Inspectable]
|
||||
public float FailureCharge;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(26)]
|
||||
[Inspectable]
|
||||
public float FailureDamage = 1;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(27)]
|
||||
[Inspectable]
|
||||
public float ChargeFiringDamageMultiplier = 1;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(28)]
|
||||
[Inspectable]
|
||||
public float ChargeFiringSpreadMultiplier = 1;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(29)]
|
||||
[Inspectable]
|
||||
public float ChargeFiringBurstCountMultiplier = 1;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(30)]
|
||||
[Inspectable]
|
||||
public float ChargeFiringVisibilityMultiplier = 1;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(31)]
|
||||
[Inspectable]
|
||||
public float ChargeFiringVelocityMultiplier = 1;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(32)]
|
||||
[Inspectable]
|
||||
public float ChargeFiringHeatMultiplier = 1;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class ConstantWeaponConfig : WeaponConfig
|
||||
{
|
||||
[InspectablePrefab, LegacyPayloadKey(17)]
|
||||
[InspectablePrefab]
|
||||
public float AmmoInterval = 1;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, Order(-10)]
|
||||
public class CooldownConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Cooldown = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ using System.Linq;
|
|||
[Inspectable, Order(-20)]
|
||||
public class EnergyDrawConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat EnergyDraw = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public bool PerSecond;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ using System.Linq;
|
|||
[Inspectable, Order(10)]
|
||||
public class HeatConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Heat = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public bool PerSecond;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,16 +7,16 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class InstantWeaponConfig : WeaponConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(17)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Count = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(18)]
|
||||
[Inspectable]
|
||||
public PerformanceStat BurstTime = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(19)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Cooldown = new PerformanceStat();
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(20)]
|
||||
[InspectablePrefab]
|
||||
public bool SingleAmmoBurst;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ using System.Linq;
|
|||
[Inspectable, Order(-5)]
|
||||
public class ItemUsageConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[LegacyPayloadKey(1)]
|
||||
public Guid Item;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,22 +7,22 @@ using Unity.Mathematics;
|
|||
[Inspectable]
|
||||
public class LauncherConfig : LockWeaponConfig
|
||||
{
|
||||
[InspectableAnimationCurve, LegacyPayloadKey(26)]
|
||||
[InspectableAnimationCurve]
|
||||
public float4[] GuidanceCurve;
|
||||
|
||||
[InspectableAnimationCurve, LegacyPayloadKey(27)]
|
||||
[InspectableAnimationCurve]
|
||||
public float4[] ThrustCurve;
|
||||
|
||||
[InspectableAnimationCurve, LegacyPayloadKey(28)]
|
||||
[InspectableAnimationCurve]
|
||||
public float4[] LiftCurve;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(29)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Thrust = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(30)]
|
||||
[Inspectable]
|
||||
public float DodgeFrequency;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(31)]
|
||||
[Inspectable]
|
||||
public PerformanceStat MissileVelocity = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
@ -34,22 +34,22 @@ public class LauncherConfig : LockWeaponConfig
|
|||
[Inspectable]
|
||||
public class GuidedWeaponConfig : InstantWeaponConfig
|
||||
{
|
||||
[InspectableAnimationCurve, LegacyPayloadKey(21)]
|
||||
[InspectableAnimationCurve]
|
||||
public float4[] GuidanceCurve;
|
||||
|
||||
[InspectableAnimationCurve, LegacyPayloadKey(22)]
|
||||
[InspectableAnimationCurve]
|
||||
public float4[] ThrustCurve;
|
||||
|
||||
[InspectableAnimationCurve, LegacyPayloadKey(23)]
|
||||
[InspectableAnimationCurve]
|
||||
public float4[] LiftCurve;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(24)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Thrust = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(25)]
|
||||
[Inspectable]
|
||||
public float DodgeFrequency;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(26)]
|
||||
[Inspectable]
|
||||
public PerformanceStat MissileVelocity = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,19 +7,19 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class LockWeaponConfig : InstantWeaponConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(21)]
|
||||
[Inspectable]
|
||||
public PerformanceStat LockSpeed = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(22)]
|
||||
[Inspectable]
|
||||
public PerformanceStat SensorImpact = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(23)]
|
||||
[Inspectable]
|
||||
public PerformanceStat LockAngle = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(24)]
|
||||
[Inspectable]
|
||||
public PerformanceStat DirectionImpact = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(25)]
|
||||
[Inspectable]
|
||||
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 MiningToolConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat DamagePerSecond = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Efficiency = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(3)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Penetration = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(4)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Range = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,22 +8,22 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class RadiatorConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Emissivity = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat PumpedHeat = new PerformanceStat();
|
||||
|
||||
[InspectableTemperature, LegacyPayloadKey(3)]
|
||||
[InspectableTemperature]
|
||||
public float TemperatureFloor;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(4)]
|
||||
[Inspectable]
|
||||
public PerformanceStat WasteHeat = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(5)]
|
||||
[Inspectable]
|
||||
public PerformanceStat EnergyUsage = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(6)]
|
||||
[Inspectable]
|
||||
public PerformanceStat ThermalMass = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -12,16 +12,16 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class ReactorConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Charge = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Efficiency = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(3)]
|
||||
[Inspectable]
|
||||
public PerformanceStat OverloadEfficiency = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(4)]
|
||||
[Inspectable]
|
||||
public PerformanceStat ThrottlingFactor = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class ReflectorConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat CrossSection = new PerformanceStat();
|
||||
|
||||
// [InspectableAnimationCurve, LegacyPayloadKey(1)]
|
||||
// [InspectableAnimationCurve]
|
||||
// public float4[] VisibilityCurve;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class ResourceScannerConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Range = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat MinimumDensity = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(3)]
|
||||
[Inspectable]
|
||||
public PerformanceStat ScanDuration = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -10,31 +10,31 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class SensorConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(3)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Sensitivity = new PerformanceStat();
|
||||
|
||||
[InspectableAnimationCurve, LegacyPayloadKey(4)]
|
||||
[InspectableAnimationCurve]
|
||||
public BezierCurve SensitivityCurve;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(5)]
|
||||
[Inspectable]
|
||||
public PerformanceStat PingBoost;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(6)]
|
||||
[Inspectable]
|
||||
public PerformanceStat PingEnergy;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(7)]
|
||||
[Inspectable]
|
||||
public PerformanceStat PingVisibility;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(8)]
|
||||
[Inspectable]
|
||||
public PerformanceStat PingRange;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(9)]
|
||||
[Inspectable]
|
||||
public PerformanceStat PingCooldown;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(10)]
|
||||
[Inspectable]
|
||||
public float PingDuration = 2;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(11)]
|
||||
[Inspectable]
|
||||
public float PingRadiusExponent = .5f;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class ShieldConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Efficiency = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat EnergyUsage = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ using GameCult.Aetheria.State.Unity;
|
|||
[Inspectable]
|
||||
public class StatModifierConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public StatReference Stat = new StatReference();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Modifier = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(3)]
|
||||
[Inspectable]
|
||||
public StatModifierType Type;
|
||||
|
||||
[InspectableType(typeof(RuntimeBehaviorConfig)), LegacyPayloadKey(4)]
|
||||
[InspectableType(typeof(RuntimeBehaviorConfig))]
|
||||
public string RequireBehavior;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
@ -153,9 +153,9 @@ public enum StatModifierType
|
|||
[Inspectable]
|
||||
public class StatReference
|
||||
{
|
||||
[InspectableType(typeof(RuntimeBehaviorConfig)), LegacyPayloadKey(1)]
|
||||
[InspectableType(typeof(RuntimeBehaviorConfig))]
|
||||
public string Target;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public string Stat;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@ using System.Linq;
|
|||
[Inspectable, Order(-22)]
|
||||
public class ThermotoggleConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[InspectableTemperature, LegacyPayloadKey(1)]
|
||||
[InspectableTemperature]
|
||||
public float TargetTemperature;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public bool HighPass;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(3)]
|
||||
[Inspectable]
|
||||
public bool Adjustable;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,19 +8,19 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, EntityTypeRestriction(HullType.Ship)]
|
||||
public class ThrusterConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Thrust = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Visibility = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(3)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Heat = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(4)]
|
||||
[Inspectable]
|
||||
public PerformanceStat EnergyUsage = new PerformanceStat();
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(5)]
|
||||
[InspectablePrefab]
|
||||
public string ParticlesPrefab;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using Unity.Mathematics;
|
|||
using static Unity.Mathematics.math;
|
||||
public class VelocityConversionConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Lambda = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public class VelocityLimitConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat TopSpeed = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ using System.Linq;
|
|||
[Inspectable]
|
||||
public class VisibilityConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Visibility = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat VisibilityDecay = new PerformanceStat();
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
|
|
@ -11,52 +11,50 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable]
|
||||
public abstract class WeaponConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[Inspectable, LegacyPayloadKey(1)]
|
||||
[Inspectable]
|
||||
public DamageType DamageType;
|
||||
|
||||
[Inspectable, LegacyPayloadKey(2)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Damage = new PerformanceStat();
|
||||
|
||||
[InspectableRangedFloat(0,1), LegacyPayloadKey(3)]
|
||||
[InspectableRangedFloat(0,1)]
|
||||
public PerformanceStat Penetration = new PerformanceStat();
|
||||
|
||||
[InspectableRangedFloat(0,1), LegacyPayloadKey(4)]
|
||||
[InspectableRangedFloat(0,1)]
|
||||
public PerformanceStat DamageSpread = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(5)]
|
||||
[Inspectable]
|
||||
public PerformanceStat MinRange = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(6)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Range = new PerformanceStat();
|
||||
|
||||
[InspectableAnimationCurve, LegacyPayloadKey(7)]
|
||||
[InspectableAnimationCurve]
|
||||
public BezierCurve DamageCurve;
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(8)]
|
||||
[InspectablePrefab]
|
||||
public string EffectPrefab;
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(9)]
|
||||
[InspectablePrefab]
|
||||
public PerformanceStat Energy = new PerformanceStat();
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(10)]
|
||||
[InspectablePrefab]
|
||||
public PerformanceStat Heat = new PerformanceStat();
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(11)]
|
||||
[InspectablePrefab]
|
||||
public PerformanceStat Visibility = new PerformanceStat();
|
||||
|
||||
[LegacyPayloadKey(12)]
|
||||
public Guid AmmoType;
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(13)]
|
||||
[InspectablePrefab]
|
||||
public int MagazineSize;
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(14)]
|
||||
[InspectablePrefab]
|
||||
public float ReloadTime = 1;
|
||||
|
||||
[InspectablePrefab, LegacyPayloadKey(15)]
|
||||
[InspectablePrefab]
|
||||
public PerformanceStat Spread = new PerformanceStat();
|
||||
|
||||
[Inspectable, LegacyPayloadKey(16)]
|
||||
[Inspectable]
|
||||
public PerformanceStat Velocity = new PerformanceStat();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using static Unity.Mathematics.math;
|
|||
[Inspectable, Order(1000)]
|
||||
public class WearConfig : RuntimeBehaviorConfig
|
||||
{
|
||||
[InspectableTemperature, LegacyPayloadKey(1)]
|
||||
[InspectableTemperature]
|
||||
public bool PerSecond = true;
|
||||
|
||||
public override Behavior CreateInstance(EquippedItem item)
|
||||
|
|
|
|||
Loading…
Reference in a new issue