Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
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 Sun, 03 July 2011 09:18 Go to previous messageGo to previous message
Musmuris

 
Master Chief Petty Officer
Stars! Nova developer
Stars! Nova developer

Messages: 96
Registered: June 2011
Daniel wrote on Fri, 01 July 2011 07:56

I have modified Item.Owner to bit shift values passed in or out so they are in the range 0 to 0x7F instead of being Item.Id & 0x7F000000. This allows code of the form item.Owner = 1 instead of item.Owner = (1 << 24); I also added some unit tests for item.Owner and item.PureId properties.

This fixes a couple of the integration tests for the battle engine, but there are more to go.


It might fix the tests.... but it breaks the making of a new game! Laughing

So i've just reverted that change locally so I can carry on until we decide what to do

Report message to a moderator

 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Turn year
Next Topic: Orders overwriting Star Data
Goto Forum:
  


Current Time: Thu May 02 22:46:51 EDT 2024