mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-11-19 08:31:41 +00:00
7192b5c095
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
28 lines
666 B
C#
28 lines
666 B
C#
namespace Fuse
|
|
{
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
|
|
public class TestEvents
|
|
{
|
|
private readonly List<TestEvent> container = new List<TestEvent>();
|
|
|
|
public ReadOnlyCollection<TestEvent> Container => this.container.AsReadOnly();
|
|
|
|
public void Parse(Lines lines)
|
|
{
|
|
var success = false;
|
|
do
|
|
{
|
|
var e = new TestEvent();
|
|
success = e.TryParse(lines);
|
|
if (success)
|
|
{
|
|
this.container.Add(e);
|
|
}
|
|
}
|
|
while (success);
|
|
}
|
|
}
|
|
}
|