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 Unity.Mathematics;
|
|
|
|
|
|
2026-06-13 15:02:32 +01:00
|
|
|
[Inspectable]
|
2026-06-14 21:48:43 +01:00
|
|
|
public class LauncherConfig : LockWeaponConfig
|
2020-03-22 19:05:26 +00:00
|
|
|
{
|
2026-06-14 22:39:44 +01:00
|
|
|
[InspectableAnimationCurve]
|
2020-03-22 19:05:26 +00:00
|
|
|
public float4[] GuidanceCurve;
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[InspectableAnimationCurve]
|
2020-03-22 19:05:26 +00:00
|
|
|
public float4[] ThrustCurve;
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[InspectableAnimationCurve]
|
2020-03-22 19:05:26 +00:00
|
|
|
public float4[] LiftCurve;
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[Inspectable]
|
2020-04-09 07:48:45 +01:00
|
|
|
public PerformanceStat Thrust = new PerformanceStat();
|
2020-03-22 19:05:26 +00:00
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[Inspectable]
|
2020-03-22 19:05:26 +00:00
|
|
|
public float DodgeFrequency;
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[Inspectable]
|
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 15:02:32 +01:00
|
|
|
[Inspectable]
|
2026-06-14 21:48:43 +01:00
|
|
|
public class GuidedWeaponConfig : InstantWeaponConfig
|
2021-02-01 08:13:14 +00:00
|
|
|
{
|
2026-06-14 22:39:44 +01:00
|
|
|
[InspectableAnimationCurve]
|
2021-02-01 08:13:14 +00:00
|
|
|
public float4[] GuidanceCurve;
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[InspectableAnimationCurve]
|
2021-02-01 08:13:14 +00:00
|
|
|
public float4[] ThrustCurve;
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[InspectableAnimationCurve]
|
2021-02-01 08:13:14 +00:00
|
|
|
public float4[] LiftCurve;
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[Inspectable]
|
2021-02-01 08:13:14 +00:00
|
|
|
public PerformanceStat Thrust = new PerformanceStat();
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[Inspectable]
|
2021-02-01 08:13:14 +00:00
|
|
|
public float DodgeFrequency;
|
|
|
|
|
|
2026-06-14 22:39:44 +01:00
|
|
|
[Inspectable]
|
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
|
|
|
}
|