mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
26 lines
437 B
C#
26 lines
437 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Bunny
|
|
{
|
|
internal class BasicData
|
|
{
|
|
private readonly int[] data;
|
|
|
|
private int index;
|
|
|
|
public BasicData(int[] data)
|
|
{
|
|
this.data = data;
|
|
index = 0;
|
|
}
|
|
public int Read()
|
|
{
|
|
return data[index++];
|
|
}
|
|
}
|
|
}
|