annotate MockObjects/MockWarFoundryLoader.cs @ 227:d8cd6b259a9f

Re #359: Add "only contained" attribute to unit types * Test to make sure sub-units are removed from the army
author IBBoard <dev@ibboard.co.uk>
date Mon, 16 Apr 2012 20:45:45 +0100
parents 4211c818ef96
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
77
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 using System;
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 using IBBoard.WarFoundry.API;
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 using IBBoard.WarFoundry.API.Objects;
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 namespace IBBoard.WarFoundry.MockObjects
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 public class MockWarFoundryLoader : AbstractWarFoundryLoader
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 protected override GameSystem GetExistingSystemForSystem(GameSystem system)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 return system;
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 protected override void DoStoreGameSystem(GameSystem system)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 //Do nothing
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 protected override void DoStoreRace(Race race)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 //Do nothing
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 public override GameSystem[] GetGameSystems()
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 return new GameSystem[0];
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 public override GameSystem GetGameSystem(string systemID)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 return null;
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 protected override void RemoveGameSystem(GameSystem system)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 //Do nothing
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 public override Race[] GetRaces(GameSystem system)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 return new Race[0];
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 public override Race GetRace(GameSystem system, string raceID)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 return null;
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 public override Race GetRace(GameSystem system, string raceID, string raceSubID)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 return null;
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 protected override void RemoveRace(Race race)
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 {
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 //Do nothing
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 }
4211c818ef96 Fixes #238: subfolders datafolder
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60