Mercurial > repos > IBBoard.WarFoundry.API
annotate api/Objects/Stat.cs @ 10:607c3232d689
Re #11 - Documentation
* Document Stats and SystemStats at class level to explain the difference
* Document WarFoundryXmlFactory at class level
Re #13 - XPath for XML loading
* Load categories using XPath - needs fixing so we can do a proper "categories/cat" query
Re #10 - Refactoring for readability
* Fix method signature for getting number from attribute added in r19
* Refactor more code in to GetExtraData method
* Separate out loading of categories for GameSystem
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Jan 2009 20:43:36 +0000 |
parents | 520818033bb6 |
children | 306558904c2a |
rev | line source |
---|---|
0 | 1 using System; |
2 | |
3 namespace IBBoard.WarFoundry.API.Objects | |
4 { | |
5 /// <summary> | |
6 /// Summary description for Stat. | |
7 /// </summary> | |
8 public class Stat | |
9 { | |
10 private StatSlot parentStatSlot; | |
11 private string statString; | |
12 | |
13 public Stat(StatSlot parentSlot, string statValue) | |
14 { | |
15 parentStatSlot = parentSlot; | |
16 statString = statValue; | |
17 } | |
18 | |
19 public StatSlot ParentSlot | |
20 { | |
21 get { return parentStatSlot; } | |
22 set { parentStatSlot = value; } | |
23 } | |
24 | |
25 public string SlotValueString | |
26 { | |
27 get { return statString; } | |
28 set { statString = (value == null ? "" : value); } | |
29 } | |
30 } | |
31 } |