Aetheria/Assets/Scripts/ServerShared/Behaviors/Launcher.cs

60 lines
1.6 KiB
C#
Raw Normal View History

/* 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 MessagePack;
using Unity.Mathematics;
2026-06-13 04:56:50 +01:00
[Inspectable, MessagePackObject]
public class LauncherData : LockWeaponData
{
2026-06-13 04:56:50 +01:00
[InspectableAnimationCurve, Key(26)]
public float4[] GuidanceCurve;
2026-06-13 04:56:50 +01:00
[InspectableAnimationCurve, Key(27)]
public float4[] ThrustCurve;
2026-06-13 04:56:50 +01:00
[InspectableAnimationCurve, Key(28)]
public float4[] LiftCurve;
2026-06-13 04:56:50 +01:00
[Inspectable, Key(29)]
public PerformanceStat Thrust = new PerformanceStat();
2026-06-13 04:56:50 +01:00
[Inspectable, Key(30)]
public float DodgeFrequency;
2026-06-13 04:56:50 +01:00
[Inspectable, Key(31), RuntimeInspectable]
public PerformanceStat MissileVelocity = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)
{
return new LockWeapon(this, item);
}
}
2026-06-13 04:56:50 +01:00
[Inspectable, MessagePackObject]
public class GuidedWeaponData : InstantWeaponData
{
2026-06-13 04:56:50 +01:00
[InspectableAnimationCurve, Key(21)]
public float4[] GuidanceCurve;
2026-06-13 04:56:50 +01:00
[InspectableAnimationCurve, Key(22)]
public float4[] ThrustCurve;
2026-06-13 04:56:50 +01:00
[InspectableAnimationCurve, Key(23)]
public float4[] LiftCurve;
2026-06-13 04:56:50 +01:00
[Inspectable, Key(24)]
public PerformanceStat Thrust = new PerformanceStat();
2026-06-13 04:56:50 +01:00
[Inspectable, Key(25)]
public float DodgeFrequency;
2026-06-13 04:56:50 +01:00
[Inspectable, Key(26), RuntimeInspectable]
public PerformanceStat MissileVelocity = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)
{
return new InstantWeapon(this, item);
}
}