internal void ResetPeer(MessageSession session, ResetPeerMessage msg) { if (session != _session) return; Logger.Write("Pylon Disconnected."); _event.Set(); }
private void OnDisconnected(ResetPeerMessage msg) { AddMessage("system", "Gone, server, gone.", DateTime.Now.Ticks); Reconnect(); }
internal void OnResetPeer(Entity entity, MessageSession session, ResetPeerMessage msg) { PositionSystem.Global.Disappear(entity); if (entity.Has<Player>()) entity.Get<Player>().Logged = false; if (entity.Has<Tickable>()) entity.Detach<Tickable>(); EntityBinder.Instance.Update(entity); if (entity.Has<Nameplate>()) Logger.Write("{0} is logout.", entity.Get<Nameplate>().Name); }