comparison API/WarFoundryLoader.cs @ 337:3c4a6403a88c

* Fix capitalisation so that new files are in the namespace no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sun, 03 Apr 2011 18:50:32 +0000
parents
children 04f4c2fea356
comparison
equal deleted inserted replaced
336:3631c1493c7f 337:3c4a6403a88c
1 // This file (WarFoundryLoader.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2007, 2008, 2009 IBBoard.
2 //
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
4
5 using System;
6 using ICSharpCode.SharpZipLib.Zip;
7
8 namespace IBBoard.WarFoundry.API
9 {
10 public class WarFoundryLoader
11 {
12 private static AbstractWarFoundryLoader loader;
13
14 /// <summary>
15 /// Gets the default <see cref="WarFoundryLoader"/> used to load WarFoundry data files.
16 /// </summary>
17 /// <returns>
18 /// The default <see cref="WarFoundryLoader"/>
19 /// </returns>
20 public static AbstractWarFoundryLoader GetDefault()
21 {
22 if (loader == null)
23 {
24 loader = new DefaultWarFoundryLoader();
25 }
26
27 return loader;
28 }
29
30 public static void SetDefault(AbstractWarFoundryLoader newLoader)
31 {
32 loader = newLoader;
33 }
34
35 private WarFoundryLoader()
36 {
37 //Hide constructor
38 }
39 }
40 }