From 9ff3d46be19b4bac82decf56a3961e90fbd12b32 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@993157c7-ee19-0410-b2c4-bb4e9862e678> Date: Wed, 18 Jul 2007 14:49:31 +0000 Subject: [PATCH] walkability, thanks to freera's templates.ini, although it was broken :D git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1303 993157c7-ee19-0410-b2c4-bb4e9862e678 --- OpenRa.FileFormats/IniFile.cs | 2 + OpenRa.FileFormats/OpenRa.FileFormats.csproj | 1 + OpenRa.FileFormats/TileSet.cs | 14 +- OpenRa.FileFormats/Walkability.cs | 42 + OpenRa.Game/PathFinder.cs | 27 +- templates.ini | 2800 ++++++++++++++++++ 6 files changed, 2879 insertions(+), 7 deletions(-) create mode 100644 OpenRa.FileFormats/Walkability.cs create mode 100644 templates.ini diff --git a/OpenRa.FileFormats/IniFile.cs b/OpenRa.FileFormats/IniFile.cs index 689547cd34..f359098709 100644 --- a/OpenRa.FileFormats/IniFile.cs +++ b/OpenRa.FileFormats/IniFile.cs @@ -61,6 +61,8 @@ namespace OpenRa.FileFormats sections.TryGetValue( s, out section ); return section; } + + public IEnumerable Sections { get { return sections.Values; } } } public class IniSection : IEnumerable> diff --git a/OpenRa.FileFormats/OpenRa.FileFormats.csproj b/OpenRa.FileFormats/OpenRa.FileFormats.csproj index 97df2ae56e..97abe4236c 100644 --- a/OpenRa.FileFormats/OpenRa.FileFormats.csproj +++ b/OpenRa.FileFormats/OpenRa.FileFormats.csproj @@ -52,6 +52,7 @@ +