Ejemplo n.º 1
0
    void IByteable.Write(ByteScribe writer)
    {
        writer.Write(fileversion);

        writer.Write((byte)width);
        writer.Write((byte)height);

        writer.Write(exitNorth);
        writer.Write(exitSouth);
        writer.Write(exitEast);
        writer.Write(exitWest);

        for (int l = 0; l < layerCount; l++)
        {
            for (int i = 0; i < arrayLength; i++)
            {
                writer.Write(tileData[l][i]);
            }
        }

        writer.Write((byte)decorations.Count);
        foreach (Decoration d in decorations)
        {
            writer.Write(d);
        }
    }
Ejemplo n.º 2
0
 void IByteable.Write(ByteScribe writer)
 {
     writer.Write(x);
     writer.Write(y);
     writer.Write(value);
 }