Unique IDs
Unique IDs
Many things in the API have the parameter index or unit_number. Can i generate my own index or unit_number, to make my objects unique? Or do i have to track this by myself?
Re: Unique IDs
You have to track it yourself.
I recommend storing the current max id in global.max_id, and the individual ids in global.entity_ids[entity.unit_number].
I recommend storing the current max id in global.max_id, and the individual ids in global.entity_ids[entity.unit_number].