提交GAS 打算做一个帧同步的GAS

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-10-18 03:16:09 +08:00
parent b0a2e4a900
commit d9b0c78827
726 changed files with 76601 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
using System;
namespace GAS.General
{
[Serializable]
public class JsonData
{
public string Type;
public string Data;
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 7a7cb94b9dba4808bbaa27c7ddfe6f37
timeCreated: 1709455860

View File

@@ -0,0 +1,27 @@
using System;
namespace GAS.General
{
public class ObservableValue<T>
{
private T _value;
public ObservableValue(T initialValue)
{
_value = initialValue;
}
public T Value
{
get => _value;
set
{
var oldValue = _value;
_value = value;
OnValueChanged?.Invoke(oldValue, value);
}
}
public event Action<T, T> OnValueChanged;
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 49847b3f12774f21ba8dbb0970c7dcb6
timeCreated: 1702438524