no more windows??

This commit is contained in:
lewd-alt
2025-05-07 10:45:18 -07:00
parent eecd2a0399
commit 9d89d2cb6a
933 changed files with 408908 additions and 407973 deletions

View File

@@ -1,76 +1,77 @@
using System;
namespace _2DGAMELIB;
public class Mot : MotV
namespace _2DGAMELIB
{
public Action<Mot> Staing;
public class Mot : MotV
{
public Action<Mot> Staing;
public Action<Mot> Runing;
public Action<Mot> Runing;
public Action<Mot> Reaing;
public Action<Mot> Reaing;
public Action<Mot> Rouing;
public Action<Mot> Rouing;
public Action<Mot> Ending;
public Action<Mot> Ending;
private bool run;
private bool run;
private bool rou;
private bool rou;
public bool Run => run;
public bool Run => run;
public Mot(double Min, double Max)
: base(Min, Max)
{
}
public Mot(double Min, double Max)
: base(Min, Max)
{
}
public new void GetValue(FPS FPS)
{
if (!run)
{
return;
}
base.GetValue(FPS);
if (Runing != null)
{
Runing(this);
}
if (Value == min)
{
if (rou && Rouing != null)
{
Rouing(this);
}
rou = false;
}
else if (Value == max)
{
if (Reaing != null)
{
Reaing(this);
}
rou = true;
}
}
public new void GetValue(FPS FPS)
{
if (!run)
{
return;
}
base.GetValue(FPS);
if (Runing != null)
{
Runing(this);
}
if (Value == min)
{
if (rou && Rouing != null)
{
Rouing(this);
}
rou = false;
}
else if (Value == max)
{
if (Reaing != null)
{
Reaing(this);
}
rou = true;
}
}
public void Start()
{
if (Staing != null)
{
Staing(this);
}
run = true;
}
public void Start()
{
if (Staing != null)
{
Staing(this);
}
run = true;
}
public void End()
{
run = false;
if (Ending != null)
{
Ending(this);
}
ResetValue();
rou = false;
}
public void End()
{
run = false;
if (Ending != null)
{
Ending(this);
}
ResetValue();
rou = false;
}
}
}