Beispiel #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());
        }
Beispiel #2
0
 internal void CopyTo(RemoteClient oldit)
 {
     oldit.Env = Env;
     oldit.Id = Id;
     oldit.IsOnline = IsOnline;
     oldit.Synchronized = syncronized;
 }
Beispiel #3
0
 public override void OnRecived(RemoteClient from, Client to)
 {
     base.OnRecived(from, to);
     from.Send(new SyncMessage());
 }