Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » Need to move away from using names as IDs
Re: Need to move away from using names as IDs |
Mon, 27 June 2011 06:04 |
|
Aeglos | | | Messages: 142
Registered: May 2011 Location: Chile | |
|
Edited my last post, it should have read "properties", not "keys".
Let's consolidate the specs until now:
* Empire shall have a unique Id
* 'Owner' variable on all objects that require it shall match it's owning Empire's Id.
* Empire shall have three counters with configurable upper bounds; FleetCount, DesignCount, StarbaseDesignCount.
* Fleets shall have a unique FleetId composed of EmpireId+FleetCount.
* Designs shall have a unique DesignId composed of EmpireId+DesignCount.
* Starbase Designs shall have a unique DesignId composed of EmpireId+StarbaseDesignCount.
* All Ids shall be Ints.
* All Id calculations shall be abstracted in Properties
We might require to add prefixes as you said, for design separation between ships and starbases. Or we could begin the SB Ids at the normal designs upper bound.
And for clarity, let's drop the "Key" nomenclature and call them all Ids from now. It's getting confusing. In fact, I would vote that the properties are also all named Id; ie. Fleet.Id, Design.Id, Empire.Id. Looks more consistent and clear.
[Updated on: Mon, 27 June 2011 06:06] Report message to a moderator
|
|
|
|
|
Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Fri, 24 June 2011 21:28
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Daniel on Sat, 25 June 2011 07:28
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Sat, 25 June 2011 07:17
|
|
|
Re: Need to move away from using names as IDs
By: Daniel on Sat, 25 June 2011 18:35
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Sat, 25 June 2011 23:15
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Mon, 27 June 2011 05:49
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Mon, 27 June 2011 06:04
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Daniel on Mon, 27 June 2011 07:09
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Tue, 28 June 2011 18:42
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Wed, 29 June 2011 02:06
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Wed, 29 June 2011 06:29
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Wed, 29 June 2011 06:54
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Wed, 29 June 2011 17:03
|
|
|
Re: Need to move away from using names as IDs
By: Daniel on Fri, 01 July 2011 07:56
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Daniel on Sat, 09 July 2011 03:15
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Fri, 01 July 2011 15:15
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Daniel on Sun, 03 July 2011 17:50
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Mon, 04 July 2011 03:25
|
|
|
Re: Need to move away from using names as IDs
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Wed, 06 July 2011 20:55
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Thu, 07 July 2011 00:20
|
|
|
Re: Need to move away from using names as IDs
By: Aeglos on Sat, 09 July 2011 04:06
|
|
|
Re: Need to move away from using names as IDs
By: Daniel on Sat, 09 July 2011 04:37
|
|
|
Re: Need to move away from using names as IDs
By: Daniel on Sat, 09 July 2011 07:48
|
Goto Forum:
Current Time: Thu May 02 20:05:43 EDT 2024
|