changeset 314:bd5d8bfe18a6

Re #253: Allow multiple data files in a single zip * Make registration methods virtual to allow implementations to do extra things on register
author IBBoard <dev@ibboard.co.uk>
date Sun, 27 Feb 2011 20:01:04 +0000
parents f00a57369aaa
children 6cb0fb78b9a6
files api/AbstractWarFoundryLoader.cs
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/api/AbstractWarFoundryLoader.cs	Sun Feb 27 15:54:13 2011 +0000
     1.2 +++ b/api/AbstractWarFoundryLoader.cs	Sun Feb 27 20:01:04 2011 +0000
     1.3 @@ -71,7 +71,7 @@
     1.4  		/// <param name="factory">
     1.5  		/// The <see cref="INativeWarFoundryFactory"/> to register to parse native data files.
     1.6  		/// </param>
     1.7 -		public void RegisterFactory(INativeWarFoundryFactory factory)
     1.8 +		public virtual void RegisterFactory(INativeWarFoundryFactory factory)
     1.9  		{
    1.10  			if (!factories.Contains(factory))
    1.11  			{
    1.12 @@ -85,7 +85,7 @@
    1.13  		/// <param name="factory">
    1.14  		/// The <see cref="INativeWarFoundryFactory"/> to remove from the collection of factories that are used to try to parse native data files.
    1.15  		/// </param>
    1.16 -		public void UnregisterFactory(INativeWarFoundryFactory factory)
    1.17 +		public virtual void UnregisterFactory(INativeWarFoundryFactory factory)
    1.18  		{
    1.19  			if (factories.Contains(factory))
    1.20  			{
    1.21 @@ -99,7 +99,7 @@
    1.22  		/// <param name="factory">
    1.23  		/// The <see cref="INonNativeWarFoundryFactory"/> to register to parse non-native data files.
    1.24  		/// </param>
    1.25 -		public void RegisterNonNativeFactory(INonNativeWarFoundryFactory factory)
    1.26 +		public virtual void RegisterNonNativeFactory(INonNativeWarFoundryFactory factory)
    1.27  		{
    1.28  			if (!nonNativeFactories.Contains(factory))
    1.29  			{
    1.30 @@ -113,7 +113,7 @@
    1.31  		/// <param name="factory">
    1.32  		/// The <see cref="INonNativeWarFoundryFactory"/> to remove from the collection of factories that are used to try to parse non-native data files.
    1.33  		/// </param>
    1.34 -		public void UnregisterNonNativeFactory(INonNativeWarFoundryFactory factory)
    1.35 +		public virtual void UnregisterNonNativeFactory(INonNativeWarFoundryFactory factory)
    1.36  		{
    1.37  			if (nonNativeFactories.Contains(factory))
    1.38  			{