annotate API/Factories/Mock/MockNativeWarFoundryFactory.cs @ 237:833f72be715a default tip

* Remove rogue print statements
author IBBoard <dev@ibboard.co.uk>
date Tue, 06 Nov 2012 20:58:48 +0000
parents 453640610ef9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
165
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file (MockNativeWarFoundryFactory.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2011 IBBoard
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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.
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 using System;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using ICSharpCode.SharpZipLib.Zip;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 using System.Collections.Generic;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 using IBBoard.WarFoundry.API.Objects;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 using System.IO;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 namespace IBBoard.WarFoundry.API.Factories.Mock
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 public class MockNativeWarFoundryFactory : AbstractNativeWarFoundryFactory
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 public MockNativeWarFoundryFactory()
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 //Do nothing special
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 protected override bool CheckCanFindSystemFileContent(ZipFile file)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 return false;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 protected override bool CheckCanFindRaceFileContent(ZipFile file)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 return false;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 protected override bool CheckCanFindArmyFileContent(ZipFile file)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 return false;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 protected override ICollection<ZipEntry> GetArmyZipEntries(ZipFile file)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 return new List<ZipEntry>().AsReadOnly();
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 protected override Army CreateArmyFromStream(ZipFile file, Stream dataStream)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 return null;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 protected override ICollection<ZipEntry> GetRaceZipEntries(ZipFile file)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 return new List<ZipEntry>().AsReadOnly();
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 protected override Race CreateRaceFromStream(ZipFile file, Stream dataStream)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 return null;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 protected override ICollection<ZipEntry> GetGameSystemZipEntries(ZipFile file)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 return new List<ZipEntry>().AsReadOnly();
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 protected override GameSystem CreateGameSystemFromStream(ZipFile file, Stream dataStream)
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 {
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 return null;
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 }
453640610ef9 Re #94: Loading files is too slow
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65