Replace runtime union metadata

This commit is contained in:
Meta Vens 2026-06-13 14:51:01 +01:00
commit d2c062c94d
10 changed files with 59 additions and 93 deletions

View file

@ -9,12 +9,7 @@ using MessagePack;
using Unity.Mathematics;
using static Unity.Mathematics.math;
[Inspectable,
Union(0, typeof(InstantWeaponData)),
Union(1, typeof(LauncherData)),
Union(2, typeof(ConstantWeaponData)),
Union(3, typeof(ChargedWeaponData)),
RuntimeInspectable]
[Inspectable, RuntimeInspectable]
public abstract class WeaponData : BehaviorData
{
[Inspectable, Key(1), RuntimeInspectable]