Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
// TotalJSON - JSONRuntimeDebugContainer
#if UNITY_EDITOR
using UnityEngine;
using System.Collections.Generic;
namespace Leguar.TotalJSON.Internal {
public class JSONRuntimeDebugContainer : MonoBehaviour {
private Dictionary<string,JValue> content;
internal JSONRuntimeDebugContainer() {
content=new Dictionary<string, JValue>();
}
internal void add(string debugName, JValue jValue) {
foreach (string key in content.Keys) {
if (content[key]==jValue) {
if (key.Equals(debugName)) {
return; // Adding same object with same name, all done
}
content.Remove(key); // Remove previous one so that same object is not in debug twice (but this allows "changing name" of debugged object)
break;
}
}
content[debugName]=jValue;
}
public Dictionary<string, JValue> getContent() {
return content;
}
}
}
#endif