Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison api/Objects/GameSystem.cs @ 51:b271a2252758
Re #50 - Fully load XML files
* Load remaining GameSystem attributes
* Add "AllowAllies" property to GameSystem class
* Add "is loading" methods to "staged loading" interface
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 28 Mar 2009 21:00:35 +0000 |
parents | d0812d7de39d |
children | 3ea0ab04352b |
comparison
equal
deleted
inserted
replaced
50:bb6b993b98bf | 51:b271a2252758 |
---|---|
16 /// Summary description for GameSystem. | 16 /// Summary description for GameSystem. |
17 /// </summary> | 17 /// </summary> |
18 public class GameSystem : WarFoundryStagedLoadingObject | 18 public class GameSystem : WarFoundryStagedLoadingObject |
19 { | 19 { |
20 private bool warnOnError; | 20 private bool warnOnError; |
21 private bool allowAllies; | |
21 private Dictionary<string, Category> categories = new Dictionary<string,Category>(); | 22 private Dictionary<string, Category> categories = new Dictionary<string,Category>(); |
22 private Dictionary<string, SystemStats> stats = new Dictionary<string,SystemStats>(); | 23 private Dictionary<string, SystemStats> stats = new Dictionary<string,SystemStats>(); |
23 private string defaultStats; | 24 private string defaultStats; |
24 | 25 |
25 public GameSystem(string systemID, string systemName, IWarFoundryFactory creatingFactory) : base(systemID, systemName, creatingFactory) | 26 public GameSystem(string systemID, string systemName, IWarFoundryFactory creatingFactory) : base(systemID, systemName, creatingFactory) |
26 { | 27 { |
27 stats = new Dictionary<string,SystemStats>(); | 28 stats = new Dictionary<string,SystemStats>(); |
28 } | 29 } |
29 | 30 |
30 /*public void CompleteLoading(Category[] cats, Dictionary<string, SystemStats> sysStats, string defaultStatsID) | 31 public bool AllowAllies |
31 { | 32 { |
32 categories = cats; | 33 get { return allowAllies; } |
33 stats = new SystemStatsSet(sysStats); | 34 set { allowAllies = value; } |
34 defaultStats = defaultStatsID; | 35 } |
35 base.CompleteLoading(); | |
36 }*/ | |
37 | 36 |
38 public void AddCategory(Category cat) | 37 public void AddCategory(Category cat) |
39 { | 38 { |
40 RawCategories[cat.ID] = cat; | 39 RawCategories[cat.ID] = cat; |
41 } | 40 } |