comparison api/Objects/WarFoundryObject.cs @ 91:571d8ddc7d9a

Fixes #111: "Replace Weapon" button doesn't always enable * Change default ID to use name plus timestamp rather than fixed string plus timestamp - should hopefully be more unique Also: * Code cleanup (line endings) in XML race factory
author IBBoard <dev@ibboard.co.uk>
date Fri, 07 Aug 2009 19:22:08 +0000
parents 3ea0ab04352b
children 2f3cafb69799
comparison
equal deleted inserted replaced
90:bd2aaa9a61df 91:571d8ddc7d9a
88 return "-"; 88 return "-";
89 } 89 }
90 90
91 protected string GenerateID() 91 protected string GenerateID()
92 { 92 {
93 return "ID" + UnixTimestamp.GetTimestamp(DateTime.Now) + "." + DateTime.Now.Millisecond; 93 return Name + UnixTimestamp.GetTimestamp(DateTime.Now) + "." + DateTime.Now.Millisecond;
94 } 94 }
95 } 95 }
96 } 96 }