Re: Syncing dynamic arrays over the network.

I have an Energy Generator (component) with a list of attached machines, no hard limit on possible connections. All "power generation and distribution" is handled on the server (gEnv->bServer), when a player tries to connect new machine he calls an RMI that adds new entityid to vector, whenever that vector changes I'm calling NetMarkAspectDirty. I think it will be better to fully rely on RMIs, but that probably will introduce some hassle on handling the new player connection (server will run independently of players like in Minecraft).

Who is online

Users browsing this forum: No registered users and 1 guest