Example #1
0
        private void BootUp()
        {
            simGroup = World.GetExistingSystem <CoherenceSimulationSystemGroup>();
            var netSys = World.GetOrCreateSystem <NetworkSystem>();
            var deserializeComponents = new ComponentDeserializeWrapper(netSys.Mapper);
            var skipper        = new DeserializeComponentsAndSkipWrapper(netSys.Mapper);
            var commandPerform = new PerformCommands(netSys.Mapper);
            var eventPerform   = new PerformEvents(netSys.Mapper);
            var receiveUpdate  = new ReceiveUpdate(deserializeComponents, skipper, netSys.Mapper, netSys.DestroyedEntities);

            receiver = new Receiver(World, netSys.Mapper, netSys.Connector, receiveUpdate, commandPerform, eventPerform, netSys.MessageChannels, netSys.SentPacketsCache);
        }
        private void BootUp()
        {
            var netSys = World.GetOrCreateSystem <NetworkSystem>();
            var deserializeComponents = new ComponentDeserializeWrapper(netSys.Mapper);
            var skipper        = new DeserializeComponentsAndSkipWrapper(netSys.Mapper);
            var commandPerform = new PerformCommands(netSys.Mapper);
            var eventPerform   = new PerformEvents(netSys.Mapper);
            var inputPerform   = new PerformInputs(netSys.Mapper);
            var receiveUpdate  = new ReceiveUpdate(deserializeComponents, skipper, netSys.Mapper);

            receiver         = new Receiver(World, receiveUpdate, commandPerform, eventPerform, inputPerform);
            frameCountSystem = World.GetExistingSystem <FrameCountSystem>();
        }