Skip to content

Allow allocating new ID's on server #1835

Open
@TheNormalnij

Description

@TheNormalnij

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions