Mercurial > repos > IBBoard.WarFoundry.API
comparison api/Objects/WarFoundryObject.cs @ 137:f58051572ec7
Fixes #128: Don't save out default names
* Check if unit has default name before exporting
* Make HasDefaultName() method public from protected
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 13 Sep 2009 17:18:41 +0000 |
parents | d59aa4e46761 |
children |
comparison
equal
deleted
inserted
replaced
136:413a7a049e41 | 137:f58051572ec7 |
---|---|
72 OnNameChanged(oldValue, name); | 72 OnNameChanged(oldValue, name); |
73 } | 73 } |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 protected bool HasDefaultName() | 77 public bool HasDefaultName() |
78 { | 78 { |
79 return (name == null || name == ""); | 79 return (name == null || name == ""); |
80 } | 80 } |
81 | 81 |
82 protected void OnNameChanged(string oldValue, string newValue) | 82 protected void OnNameChanged(string oldValue, string newValue) |