Open
Description
API
int model = allocateModel( string type, ... config )
This function will allocate new modelID from the end of modelIInfo array( from 20000 to 0 )
Will return false if modelIInfo array is full
bool success = allocateModelAt( int modelID, string type, ... config )
This function will provide manual ID control.
bool success = freeModelAt( int modelID )
Will destroy all objects used by this ID and deallocate modelID
How to it will works
When resource with new ID's will be started, server will send packed with new registered ID's. If client has conflicts with serverside ID, client should reconnect to this server.
When client try connect to the server. It should get packed with all new allocated ID's before game and resources started and allocate new ID's