Mercurial > repos > snowblizz-super-API-ideas
annotate api/Objects/Stat.cs @ 197:ec1cfe3ef94e
* Add extra method for getting the number of items in a slot without including the given item (required when editing equipment in slots)
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 30 Oct 2009 21:02:48 +0000 |
parents | 2f3cafb69799 |
children |
rev | line source |
---|---|
104
2f3cafb69799
Re #121: Migrate to AGPL license
IBBoard <dev@ibboard.co.uk>
parents:
82
diff
changeset
|
1 // This file (Stat.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2007, 2008, 2009 IBBoard. |
15 | 2 // |
104
2f3cafb69799
Re #121: Migrate to AGPL license
IBBoard <dev@ibboard.co.uk>
parents:
82
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. |
15 | 4 |
82 | 5 using System; |
6 | |
7 namespace IBBoard.WarFoundry.API.Objects | |
8 { | |
9 /// <summary> | |
10 /// Summary description for Stat. | |
11 /// </summary> | |
12 public class Stat | |
13 { | |
14 private StatSlot parentStatSlot; | |
15 private string statString; | |
16 | |
17 public Stat(StatSlot parentSlot, string statValue) | |
18 { | |
19 parentStatSlot = parentSlot; | |
20 statString = statValue; | |
21 } | |
22 | |
23 public StatSlot ParentSlot | |
24 { | |
25 get { return parentStatSlot; } | |
26 set { parentStatSlot = value; } | |
27 } | |
28 | |
29 public string ParentSlotName | |
30 { | |
31 get { return ParentSlot.Name; } | |
32 } | |
33 | |
34 public string SlotValueString | |
35 { | |
36 get { return statString; } | |
37 set { statString = (value == null ? "" : value); } | |
38 } | |
39 } | |
40 } |