This commit is contained in:
TinyHerm committed 2026-11-24 23:40:08 +03:00
commit 1c7a8cf25f
579 files changed
+83196

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
namespace VibranceHud;
public sealed class LastSentEffect
{
private float[]? _sent;
private bool _known;
public bool AlreadySent(float[]? next)
{
if (!_known)
{
return false;
}
if (_sent == null || next == null)
{
if (_sent == null)
{
return next == null;
}
return false;
}
if (_sent.Length != next.Length)
{
return false;
}
for (int i = 0; i < _sent.Length; i++)
{
if (_sent[i] != next[i])
{
return false;
}
}
return true;
}
public void Remember(float[]? sent)
{
_known = true;
_sent = ((sent == null) ? null : ((float[])sent.Clone()));
}
public void Forget()
{
_known = false;
_sent = null;
}
}