Mercurial > repos > snowblizz-super-API-ideas
changeset 307:afa7a5dd0eea
Re #99: Define "points" values in GameSystem
* Use short-hand method for defining simple properties to reduce code
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 13 Feb 2011 20:55:13 +0000 |
parents | 886d28c1b6e5 |
children | e1438fb9024c |
files | api/Objects/GameSystem.cs |
diffstat | 1 files changed, 4 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Objects/GameSystem.cs Sun Feb 13 16:24:12 2011 +0000 +++ b/api/Objects/GameSystem.cs Sun Feb 13 20:55:13 2011 +0000 @@ -19,10 +19,6 @@ private Dictionary<string, SystemStats> stats = new Dictionary<string, SystemStats>(); private string defaultStats; private int defaultArmySize; - private string systemPtsAbbrevSingle; - private string systemPtsAbbrevPlural; - private string systemPtsNameSingle; - private string systemPtsNamePlural; public GameSystem(string systemID, string systemName, IWarFoundryFactory creatingFactory) : base(systemID, systemName, creatingFactory) { @@ -47,23 +43,19 @@ public string SystemPtsAbbrevSingle { - get { return systemPtsAbbrevSingle; } - set { systemPtsAbbrevSingle = value; } + get; set; } public string SystemPtsAbbrevPlural { - get { return systemPtsAbbrevPlural; } - set { systemPtsAbbrevPlural = value; } + get; set; } public string SystemPtsNameSingle { - get { return systemPtsNameSingle; } - set { systemPtsNameSingle = value; } + get; set; } public string SystemPtsNamePlural { - get { return systemPtsNamePlural; } - set { systemPtsNamePlural = value; } + get; set; } public bool AllowAllies {