public override void BoltStartBegin()
        {
            // Define Reliable Channel
            _textureTransmitChannel = BoltNetwork.CreateStreamChannel(TextureTransmitChannelName, UdpChannelMode.Reliable, 1);

            BoltNetwork.RegisterTokenClass <PlayerTextureMeta>();
        }
예제 #2
0
    public override void BoltStartBegin()
    {
        InitJsonChannel          = BoltNetwork.CreateStreamChannel(InitJsonChannelName, UdpChannelMode.Reliable, 4);
        WaspJsonChannel          = BoltNetwork.CreateStreamChannel(WaspJsonChannelName, UdpChannelMode.Reliable, 4);
        PlayerJsonChannel        = BoltNetwork.CreateStreamChannel(PlayerJsonChannelName, UdpChannelMode.Reliable, 4);
        StreamAggregationChannel = BoltNetwork.CreateStreamChannel(StreamAggregationName, UdpChannelMode.Reliable, 4);
        UpdateAggregationChannel = BoltNetwork.CreateStreamChannel(UpdateAggregationName, UdpChannelMode.Reliable, 4);


        BoltNetwork.RegisterTokenClass <PartToken>();
        BoltNetwork.RegisterTokenClass <PartTokenParent>();
        BoltNetwork.RegisterTokenClass <PartTokenComplex>();
    }
예제 #3
0
        private void CreateStreamChannels()
        {
            _streamChannels.Clear();

            string[] streamChannelNames  = Enum.GetNames(typeof(StreamChannelType));
            int[]    streamChannelValues = Enum.GetValues(typeof(StreamChannelType)) as int[];

            for (int i = 0; i < streamChannelValues.Length; i++)
            {
                StreamChannelType type = (StreamChannelType)streamChannelValues[i];

                GetStreamChannelSettings(type, out bool reliable, out int priority);

                UdpChannelName photonChannelName = BoltNetwork.CreateStreamChannel(streamChannelNames[i], reliable ? UdpChannelMode.Reliable : UdpChannelMode.Unreliable, priority);

                StreamChannel channel = new StreamChannel(photonChannelName, streamChannelNames[i], reliable, priority, type);

                _streamChannels.Add(type, channel);
            }
        }
    public override void BoltStartBegin()
    {
        base.BoltStartBegin();

        BoltNetwork.CreateStreamChannel("pogo", UdpChannelMode.Reliable, 1);
    }
예제 #5
0
 public override void BoltStartBegin()
 {
     testChannel = BoltNetwork.CreateStreamChannel("test", UdpChannelMode.Reliable, 1);
 }
    public override void BoltStartBegin()
    {
        print("Creating WorldVoxel channel");

        WorldVoxelChannel = BoltNetwork.CreateStreamChannel("WorldVoxelChannel", UdpKit.UdpChannelMode.Reliable, 1);
    }
예제 #7
0
 public override void BoltStartBegin()
 {
     CoopVoice.VoiceChannel = BoltNetwork.CreateStreamChannel("Voice", UdpChannelMode.Unreliable, 1);
 }
예제 #8
0
 public override void BoltStartBegin()
 {
     CoopVoice.VoiceChannel = BoltNetwork.CreateStreamChannel(CoopPlayerCallbacks.CHANNEL_VOICE, UdpChannelMode.Unreliable, 1);
     Debug.Log("CoopPlayerCallbacks::BoltStartBegin CoopVoice.VoiceChannel:" + CoopVoice.VoiceChannel);
 }
예제 #9
0
 public override void BoltStartBegin()
 {
     PhotonBoltNetworkManager.streamChannel = BoltNetwork.CreateStreamChannel("UN_Bolt_StreamChannel", UdpKit.UdpChannelMode.Reliable, 1);
 }