public override void OnSessionReady() { ClientReadyDataMsg msg = new ClientReadyDataMsg { UsePlayoutDelayBufferForCharacter = true, UsePlayoutDelayBufferForJetpack = true, UsePlayoutDelayBufferForGrids = true }; this.ReplicationLayer.SendClientReady(ref msg); }
private static void OnVirtualClientAdded(int index) { Endpoint endpoint = new Endpoint(MyEventContext.Current.IsLocallyInvoked ? new EndpointId(Sync.MyId) : MyEventContext.Current.Sender, (byte)index); MyReplicationServer replicationLayer = MyMultiplayer.Static.ReplicationLayer as MyReplicationServer; replicationLayer.AddClient(endpoint, CreateClientState()); ClientReadyDataMsg msg = new ClientReadyDataMsg { UsePlayoutDelayBufferForCharacter = true, UsePlayoutDelayBufferForJetpack = true, UsePlayoutDelayBufferForGrids = true }; replicationLayer.OnClientReady(endpoint, ref msg); }