2020-12-22 03:13:43 +00:00
|
|
|
/* 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/. */
|
2020-03-22 19:05:26 +00:00
|
|
|
|
|
|
|
|
using MessagePack;
|
|
|
|
|
using Unity.Mathematics;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, MessagePackObject]
|
2021-01-25 05:53:36 +00:00
|
|
|
public class LauncherData : LockWeaponData
|
2020-03-22 19:05:26 +00:00
|
|
|
{
|
2026-06-13 04:56:50 +01:00
|
|
|
[InspectableAnimationCurve, Key(26)]
|
2020-03-22 19:05:26 +00:00
|
|
|
public float4[] GuidanceCurve;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[InspectableAnimationCurve, Key(27)]
|
2020-03-22 19:05:26 +00:00
|
|
|
public float4[] ThrustCurve;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[InspectableAnimationCurve, Key(28)]
|
2020-03-22 19:05:26 +00:00
|
|
|
public float4[] LiftCurve;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, Key(29)]
|
2020-04-09 07:48:45 +01:00
|
|
|
public PerformanceStat Thrust = new PerformanceStat();
|
2020-03-22 19:05:26 +00:00
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, Key(30)]
|
2020-03-22 19:05:26 +00:00
|
|
|
public float DodgeFrequency;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, Key(31), RuntimeInspectable]
|
2021-01-31 03:52:32 +00:00
|
|
|
public PerformanceStat MissileVelocity = new PerformanceStat();
|
2020-03-22 19:05:26 +00:00
|
|
|
|
2021-04-18 05:13:20 +01:00
|
|
|
public override Behavior CreateInstance(EquippedItem item)
|
2020-03-22 19:05:26 +00:00
|
|
|
{
|
2021-04-12 04:20:52 +01:00
|
|
|
return new LockWeapon(this, item);
|
2020-03-22 19:05:26 +00:00
|
|
|
}
|
2021-02-01 08:13:14 +00:00
|
|
|
}
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, MessagePackObject]
|
2021-02-01 08:13:14 +00:00
|
|
|
public class GuidedWeaponData : InstantWeaponData
|
|
|
|
|
{
|
2026-06-13 04:56:50 +01:00
|
|
|
[InspectableAnimationCurve, Key(21)]
|
2021-02-01 08:13:14 +00:00
|
|
|
public float4[] GuidanceCurve;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[InspectableAnimationCurve, Key(22)]
|
2021-02-01 08:13:14 +00:00
|
|
|
public float4[] ThrustCurve;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[InspectableAnimationCurve, Key(23)]
|
2021-02-01 08:13:14 +00:00
|
|
|
public float4[] LiftCurve;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, Key(24)]
|
2021-02-01 08:13:14 +00:00
|
|
|
public PerformanceStat Thrust = new PerformanceStat();
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, Key(25)]
|
2021-02-01 08:13:14 +00:00
|
|
|
public float DodgeFrequency;
|
|
|
|
|
|
2026-06-13 04:56:50 +01:00
|
|
|
[Inspectable, Key(26), RuntimeInspectable]
|
2021-02-01 08:13:14 +00:00
|
|
|
public PerformanceStat MissileVelocity = new PerformanceStat();
|
|
|
|
|
|
2021-04-18 05:13:20 +01:00
|
|
|
public override Behavior CreateInstance(EquippedItem item)
|
2021-02-01 08:13:14 +00:00
|
|
|
{
|
2021-04-12 04:20:52 +01:00
|
|
|
return new InstantWeapon(this, item);
|
2021-02-01 08:13:14 +00:00
|
|
|
}
|
2020-03-22 19:05:26 +00:00
|
|
|
}
|