maint: added livewatch asset

This commit is contained in:
Chris
2025-08-31 18:14:07 -04:00
parent 7f5d95787b
commit ae2371a6fa
385 changed files with 150792 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
using System;
using UnityEngine;
namespace Ingvar.LiveWatch
{
[Serializable]
public class WatchVariable : ISerializationCallbackReceiver
{
public string Name;
public WatchValueList Values = new ();
[SerializeReference] public WatchVariable Parent;
[SerializeReference] public WatchStorage Childs = new ();
public VariableEditorMeta EditorMeta = new ();
public VariableRuntimeMeta RuntimeMeta = new ();
public bool HasChilds => Childs.Count > 0;
public bool HasValues => Values.Count > 0;
public void OnBeforeSerialize()
{
}
public void OnAfterDeserialize()
{
foreach (var child in Childs.Items.Values)
{
child.Parent = this;
}
}
}
}