Exemplo n.º 1
0
    public void Read(BinaryReader br)
    {
        Name           = br.ReadString();
        GridSizeX      = br.ReadInt32();
        GridSizeY      = br.ReadInt32();
        StartingRoomId = br.ReadString();

        Rooms.Read(room => room.Id, br);
        Hallways.Read(hallway => hallway.Id, br);
        SharedMashExecutionIds.Read(br);
    }
Exemplo n.º 2
0
    public void Write(BinaryWriter bw)
    {
        bw.Write(Name);
        bw.Write(GridSizeX);
        bw.Write(GridSizeY);
        bw.Write(StartingRoomId);

        Rooms.Write(bw);
        Hallways.Write(bw);
        SharedMashExecutionIds.Write(bw);
    }