Exemplo n.º 1
0
        public void Transfer(IMainLoop ignored)
        {
            if (Existing.IsDead())
            {
                return;
            }

            var entity = Existing.Get();

            var net = entity.GetNetwork();

            if (net == null)
            {
                return;
            }

            if (!net.TryReinitializeUsing(NewConnection, SignlinkUid))
            {
                Log.Normal(this, $"Attempted but failed to reconnected entity {Existing} Disposed?");
                return;
            }

            Log.Normal(this, $"Reconnected entity {Existing}.");
        }