CodeLiturgy.Dashboard/BlueWest/Core/Coroutines/CustomYieldInstruction.cs

28 lines
526 B
C#
Raw Normal View History

2021-12-06 02:49:27 +03:00
using System.Collections;
using System.Runtime.InteropServices;
namespace BlueWest.Coroutines
{
[StructLayout(LayoutKind.Sequential)]
public abstract class CustomYieldInstruction : IEnumerator
{
public abstract bool keepWaiting { get; }
//
// Properties
//
public object Current => null;
//
// Methods
//
public bool MoveNext()
{
return keepWaiting;
}
public void Reset()
{
}
}
}