At the moment, the parser is accessing the DataModel, effectively resulting in parser code firing DataModel events before the peer side gets a chance to react to them.
This becomes a problem when we introduce a server with multiple clients. Ideally, we would like to hook the DataModel events to broadcast changes to all clients. However, currently the parser fires the NewInstance event before the packet is even received by the client handler code, so the network owner of the instance can't be set before broadcasting it, and in the end we don't have a way to skip sending the instance to its owner.
At the moment, the parser is accessing the DataModel, effectively resulting in parser code firing DataModel events before the peer side gets a chance to react to them.
This becomes a problem when we introduce a server with multiple clients. Ideally, we would like to hook the DataModel events to broadcast changes to all clients. However, currently the parser fires the NewInstance event before the packet is even received by the client handler code, so the network owner of the instance can't be set before broadcasting it, and in the end we don't have a way to skip sending the instance to its owner.