mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:07:22 +01:00
Add MCDO (#80)
* update api * mcd online editor impl * most of chara data hub impl * some state of things * some refactoring * random bullshit go * more nearby impl * add uid to peformance msg * cleanup/homogenization * some split, update nuget packages * migrate to latest packages where possible, remove lz4net, do some split, idk * some polish and cleanup * more cleanup, beautification, etc. * fixes and cleanups --------- Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
This commit is contained in:
parent
993bfc6ed4
commit
f44f8df989
53 changed files with 5155 additions and 537 deletions
22
MareSynchronos/Utils/ValueProgress.cs
Normal file
22
MareSynchronos/Utils/ValueProgress.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
namespace MareSynchronos.Utils;
|
||||
|
||||
public class ValueProgress<T> : Progress<T>
|
||||
{
|
||||
public T? Value { get; set; }
|
||||
|
||||
protected override void OnReport(T value)
|
||||
{
|
||||
base.OnReport(value);
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public void Report(T value)
|
||||
{
|
||||
OnReport(value);
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
Value = default;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue