public static void Show(PacketAPI api, NPCRenderer shopKeeper)
		{
			if (Instance != null)
				return;

			Instance = new ShopDialog(api, shopKeeper.NPC.Data.ID);

			//request from server is based on the map index
			if (!api.RequestShop(shopKeeper.NPC.Index))
			{
				Instance.Close();
				Instance = null;
				EOGame.Instance.DoShowLostConnectionDialogAndReturnToMainMenu();
			}
		}
Exemple #2
0
        public static void Show(PacketAPI api, OldNPCRenderer shopKeeper)
        {
            if (Instance != null)
            {
                return;
            }

            Instance = new ShopDialog(api, shopKeeper.NPC.Data.ID);

            //request from server is based on the map index
            if (!api.RequestShop(shopKeeper.NPC.Index))
            {
                Instance.Close();
                Instance = null;
                EOGame.Instance.DoShowLostConnectionDialogAndReturnToMainMenu();
            }
        }