2020-04-09 07:48:45 +01:00
|
|
|
using MessagePack;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
2020-04-16 03:08:18 +01:00
|
|
|
[Union(0, typeof(ProjectileWeaponData)),
|
2020-04-09 10:33:16 +01:00
|
|
|
Union(1, typeof(LauncherData))]
|
2020-05-06 04:56:36 +01:00
|
|
|
public abstract class WeaponData : BehaviorData
|
2020-04-09 07:48:45 +01:00
|
|
|
{
|
2020-05-11 01:17:10 +01:00
|
|
|
[InspectableField, JsonProperty("damageType"), Key(1)]
|
2020-04-09 07:48:45 +01:00
|
|
|
public DamageType DamageType;
|
|
|
|
|
|
2020-05-12 01:42:13 +01:00
|
|
|
[InspectableField, JsonProperty("damage"), Key(2)]
|
2020-04-09 07:48:45 +01:00
|
|
|
public PerformanceStat Damage = new PerformanceStat();
|
|
|
|
|
|
2020-05-12 01:42:13 +01:00
|
|
|
[InspectableField, JsonProperty("range"), Key(3)]
|
2020-04-09 07:48:45 +01:00
|
|
|
public PerformanceStat Range = new PerformanceStat();
|
|
|
|
|
|
2020-05-12 01:42:13 +01:00
|
|
|
[InspectableField, JsonProperty("burstCount"), Key(4)]
|
2020-04-09 07:48:45 +01:00
|
|
|
public int BurstCount;
|
|
|
|
|
|
2020-05-12 01:42:13 +01:00
|
|
|
[InspectableField, JsonProperty("burstTime"), Key(5)]
|
2020-04-09 07:48:45 +01:00
|
|
|
public PerformanceStat BurstTime = new PerformanceStat();
|
|
|
|
|
}
|