protected override void OnCreate() { base.OnCreate(); m_IncomingDataQuery = GetEntityQuery(new EntityQueryDesc { All = new ComponentType[] { typeof(CommandTargetComponent), typeof(IncomingCommandDataStreamBufferComponent) } }); m_CommandCollectionSystem = World.GetOrCreateSystem <CommandCollectionSystem>(); m_NetworkCompressionModel = new NetworkCompressionModel(Allocator.Persistent); }
protected override void OnCreate() { base.OnCreate(); m_IncomingDataQuery = GetEntityQuery(new EntityQueryDesc { All = new ComponentType[] { typeof(CommandTargetComponent), typeof(NetworkStreamInGame) }, None = new ComponentType[] { typeof(NetworkStreamDisconnected), typeof(NetworkStreamRequestDisconnect) } }); m_CommandCollectionSystem = World.GetOrCreateSystem <CommandCollectionSystem>(); m_ReceiveSystem = World.GetOrCreateSystem <NetworkStreamReceiveSystem>(); m_ClientSimulationSystemGroup = World.GetOrCreateSystem <ClientSimulationSystemGroup>(); m_NetworkCompressionModel = new NetworkCompressionModel(Allocator.Persistent); }