summaryrefslogtreecommitdiff
path: root/MorgSimulator/Framework/IEntityIterator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MorgSimulator/Framework/IEntityIterator.cs')
-rw-r--r--MorgSimulator/Framework/IEntityIterator.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/MorgSimulator/Framework/IEntityIterator.cs b/MorgSimulator/Framework/IEntityIterator.cs
new file mode 100644
index 0000000..9333468
--- /dev/null
+++ b/MorgSimulator/Framework/IEntityIterator.cs
@@ -0,0 +1,11 @@
+#nullable enable
+namespace MorgSimulator.Framework
+{
+ public interface IEntityIterator<T> where T : Entity
+ {
+ bool HasNext();
+ T? Next();
+ void Reset();
+ }
+}
+#nullable disable