Replace runtime MessagePack DTO keys

This commit is contained in:
Meta Vens 2026-06-13 15:02:32 +01:00
commit 066597e70b
41 changed files with 298 additions and 314 deletions

View file

@ -4,20 +4,19 @@
using System;
using System.Linq;
using MessagePack;
using Unity.Mathematics;
using static Unity.Mathematics.math;
[Inspectable, MessagePackObject, RuntimeInspectable]
[Inspectable, RuntimeInspectable]
public class ResourceScannerData : BehaviorData
{
[Inspectable, Key(1), RuntimeInspectable]
[Inspectable, RuntimeCatalogKey(1), RuntimeInspectable]
public PerformanceStat Range = new PerformanceStat();
[Inspectable, Key(2), RuntimeInspectable]
[Inspectable, RuntimeCatalogKey(2), RuntimeInspectable]
public PerformanceStat MinimumDensity = new PerformanceStat();
[Inspectable, Key(3), RuntimeInspectable]
[Inspectable, RuntimeCatalogKey(3), RuntimeInspectable]
public PerformanceStat ScanDuration = new PerformanceStat();
public override Behavior CreateInstance(EquippedItem item)