mirror of
https://github.com/Ellpeck/Coroutine.git
synced 2024-05-07 10:23:53 +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
|
|
|
|
}
|
|
} |