mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-06-15 18:34:30 +02:00
24 lines
412 B
C#
24 lines
412 B
C#
|
using System;
|
||
|
|
||
|
namespace Coroutine {
|
||
|
public abstract class Wait {
|
||
|
|
||
|
public abstract WaitType GetWaitType();
|
||
|
|
||
|
public virtual bool Tick(double deltaSeconds) {
|
||
|
throw new NotSupportedException();
|
||
|
}
|
||
|
|
||
|
public virtual bool OnEvent(Event evt) {
|
||
|
throw new NotSupportedException();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
public enum WaitType {
|
||
|
|
||
|
Tick,
|
||
|
Event
|
||
|
|
||
|
}
|
||
|
}
|