示例#1
0
        public override void OnRecived(RemoteClient from, Client to)
        {
            base.OnRecived(from, to);
            Environment.ParentClient.Log(LogLevel.Info, "{0}: Дать синхронизацию", from);

            var env = Environment;
            if (to.Synchronized && env.IsNearest(from, to, to.RemoteClients.Where(x => x.Synchronized).ToList()))
                from.Send(new SyncMessage());
        }
示例#2
0
 public override void OnRecived(RemoteClient from, Client to)
 {
     base.OnRecived(from, to);
     from.Send(new SyncMessage());
 }