Networked SimGroup
by Mark Dynna · in Torque Game Engine Advanced · 05/12/2007 (2:32 pm) · 0 replies
I'm at a point in my project where I need to look at getting a SimGroup networked. Basically, I would like an ItemData object to have a group of "children" which are custom Datablock objects. I could "force" client-side create of the group using CommandToClient calls when a client connects, but I would like to do it "right" and have the engine automatically ghost the group to a new client.
In my initial look at it, I was thinking of creating a new object that would implement the CON_DATABLOCK thing. Would it have to inherit from NetObject? Then I would need to figure out how to write PackUpdate and UnpackUpdate. Possibly by sending the number of objects and their ID's in Pack, then have the Unpack re-create the collection?
I could use some helpful pointers here. Thanks in advance.
In my initial look at it, I was thinking of creating a new object that would implement the CON_DATABLOCK thing. Would it have to inherit from NetObject? Then I would need to figure out how to write PackUpdate and UnpackUpdate. Possibly by sending the number of objects and their ID's in Pack, then have the Unpack re-create the collection?
I could use some helpful pointers here. Thanks in advance.