# HG changeset patch # User IBBoard # Date 1298836864 0 # Node ID bd5d8bfe18a6a04833c828084792a7f458c4274c # Parent f00a57369aaae07be14ee9771d7950c27eb78a80 Re #253: Allow multiple data files in a single zip * Make registration methods virtual to allow implementations to do extra things on register diff -r f00a57369aaa -r bd5d8bfe18a6 api/AbstractWarFoundryLoader.cs --- a/api/AbstractWarFoundryLoader.cs Sun Feb 27 15:54:13 2011 +0000 +++ b/api/AbstractWarFoundryLoader.cs Sun Feb 27 20:01:04 2011 +0000 @@ -71,7 +71,7 @@ /// /// The to register to parse native data files. /// - public void RegisterFactory(INativeWarFoundryFactory factory) + public virtual void RegisterFactory(INativeWarFoundryFactory factory) { if (!factories.Contains(factory)) { @@ -85,7 +85,7 @@ /// /// The to remove from the collection of factories that are used to try to parse native data files. /// - public void UnregisterFactory(INativeWarFoundryFactory factory) + public virtual void UnregisterFactory(INativeWarFoundryFactory factory) { if (factories.Contains(factory)) { @@ -99,7 +99,7 @@ /// /// The to register to parse non-native data files. /// - public void RegisterNonNativeFactory(INonNativeWarFoundryFactory factory) + public virtual void RegisterNonNativeFactory(INonNativeWarFoundryFactory factory) { if (!nonNativeFactories.Contains(factory)) { @@ -113,7 +113,7 @@ /// /// The to remove from the collection of factories that are used to try to parse non-native data files. /// - public void UnregisterNonNativeFactory(INonNativeWarFoundryFactory factory) + public virtual void UnregisterNonNativeFactory(INonNativeWarFoundryFactory factory) { if (nonNativeFactories.Contains(factory)) {