I'm currently in the process of converting my project from the built in Networking to TNet. So far the transition has been very smooth. I'm currently facing an issue when trying to Create a prefab with multiple TNObject components in its hierarchy.
I currently have a structure like
-Player
-Inventory
-Equipment
Where I would like to have each object with its own TNObject. The inventory and equipment both derive from an ItemContainer base class which is handling the synchronization. Calls like NetworkMoveItem, NetworkAddItem, NetworkRemoveItem etc.
With the built in networking I was able to Instantiate my player, then allocate 2 extra NetworkViewID's and send those over via RPC. This would allow the Inventory and Equipment to link up over the network with their counterparts on other clients.
Now my question is is there anything similar to Network.AllocateViewID(), after looking a bit through the Create code it seems the TNObject unique ids are a decrementing counter kept by the current channel.
Alternatively I could Create the player, then call Create for the extra children that are needed, but I was just wondering if there is a way to keep my current implementation.