public void CleanupInstances() { if (Room != null) { if (Room.Type == MiniRoomBase.RoomType.PersonalShop) { Room.RemovePlayerFromShop(this); } else { Room.RemovePlayer(this, 0); } Room = null; } ShopNPCID = 0; TrunkNPCID = 0; NpcSession?.Stop(); NpcSession = null; }
public ChannelClient() { this.Creatures = new Dictionary <long, Creature>(); this.NpcSession = new NpcSession(); }