VContainer icon indicating copy to clipboard operation
VContainer copied to clipboard

Registering Client and Server Worlds in VContainer

Open H4CK3R0FF1C14L opened this issue 1 year ago • 1 comments

I am trying to build a project architecture using VContainer and Entities. Since this is a multiplayer project, I am also using NetCode For Entities and NetCode For Entities provides 2 methods to create a client and server worlds

ClientServerBootstrap.CreateServerWorld("Server World"); ClientServerBootstrap.CreateClientWorld("Client World");

Can I somehow register these two worlds in VContainer, because in the documentation there is a method RegisterNewWorld, but it creates the world itself, taking in arguments the name for the world.

H4CK3R0FF1C14L avatar May 27 '24 12:05 H4CK3R0FF1C14L

RegisterSystemIntoWorld is available. Check. This should also be in the documentation. https://vcontainer.hadashikick.jp/integrations/ecs#when-to-use-your-custom-world

I am not familiar with NetCode. If there is a missing feature, please tell me specifically. Thanks a lot.

hadashiA avatar Jul 15 '24 04:07 hadashiA