[Code] Prison Architect LINQ

(previously 'DEVELOPER') Private forum for registered community members. To register, please visit www.prison-architect.com/register.

Moderator: NBJeff

mizipzor
level1
level1
Posts: 17
Joined: Thu Sep 27, 2012 10:33 pm

[Code] Prison Architect LINQ

Postby mizipzor » Fri Oct 05, 2012 2:42 pm

As soon as I learned that the save files are text based and wide open to editing I started writing a parser for it.

What I want to do is represent the content of the file as proper objects. Having that, it will be easy to write reusable LINQ queries and expressions against everything stored there. This will make it easy to create a tool with one-click-to-fix buttons, for example for getting stuck prisoners unstuck. The pipe dream is obviously a full blown map editor.

It can currently only parse cells (not the room Cell but the tiles/squares on the map). All other lines are simply echoed. I'll continue when I get home, now I need to write some code that I'm paid to write.

Any .Net coders out there?

http://pastebin.com/g6CDDDtL

Return to “Community Members”

Who is online

Users browsing this forum: No registered users and 1 guest