0
|
1 // MockFactory.cs
|
|
2 //
|
|
3 // Copyright (C) 2008 IBBoard
|
|
4 //
|
|
5 // This library is free software; you can redistribute it and/or
|
|
6 // modify it under the terms of the GNU Lesser General Public
|
|
7 // License as published by the Free Software Foundation; either
|
|
8 // version 2.1 of the License, or (at your option) any later version.
|
|
9 //
|
|
10 // This library is distributed in the hope that it will be useful,
|
|
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13 // Lesser General Public License for more details.
|
|
14 //
|
|
15 // You should have received a copy of the GNU Lesser General Public
|
|
16 // License along with this library; if not, write to the Free Software
|
|
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
18 //
|
|
19
|
|
20 using System;
|
|
21 using System.IO;
|
|
22 using IBBoard.WarFoundry.API.Objects;
|
|
23 using ICSharpCode.SharpZipLib.Zip;
|
|
24
|
|
25 namespace IBBoard.WarFoundry.API.Factories
|
|
26 {
|
|
27 public class MockFactory : AbstractNativeWarFoundryFactory
|
|
28 {
|
|
29 public MockFactory()
|
|
30 {
|
|
31 }
|
|
32
|
|
33 protected override bool CheckCanFindArmyFileContent(ZipFile file)
|
|
34 {
|
|
35 return true;
|
|
36 }
|
|
37
|
|
38 protected override bool CheckCanFindRaceFileContent(ZipFile file)
|
|
39 {
|
|
40 return true;
|
|
41 }
|
|
42
|
|
43 protected override bool CheckCanFindSystemFileContent(ZipFile file)
|
|
44 {
|
|
45 return true;
|
|
46 }
|
|
47
|
|
48 public override void CompleteLoading (IWarFoundryStagedLoadObject obj)
|
|
49 {
|
|
50 //Do nothing
|
|
51 }
|
|
52
|
|
53 protected override Army CreateArmyFromStream (ZipFile file, Stream dataStream)
|
|
54 {
|
|
55 throw new NotImplementedException ();
|
|
56 }
|
|
57
|
|
58 protected override GameSystem CreateGameSystemFromStream (ZipFile file, Stream dataStream)
|
|
59 {
|
|
60 throw new NotImplementedException ();
|
|
61 }
|
|
62
|
|
63 protected override Race CreateRaceFromStream (ZipFile file, Stream dataStream)
|
|
64 {
|
|
65 throw new NotImplementedException ();
|
|
66 }
|
|
67
|
|
68 protected override Stream GetArmyDataStream (ZipFile file)
|
|
69 {
|
|
70 throw new NotImplementedException ();
|
|
71 }
|
|
72
|
|
73 protected override Stream GetGameSystemDataStream (ZipFile file)
|
|
74 {
|
|
75 throw new NotImplementedException ();
|
|
76 }
|
|
77
|
|
78 protected override Stream GetRaceDataStream (ZipFile file)
|
|
79 {
|
|
80 throw new NotImplementedException ();
|
|
81 }
|
|
82 }
|
|
83 }
|