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(); } }
public EffectRenderer(INativeGraphicsManager gfxManager, OldNPCRenderer npc, Action cleanupAction = null) : this(gfxManager, (DrawableGameComponent)npc, cleanupAction) { }
private Rectangle GetTargetRectangle(OldNPCRenderer npc) { return(npc.MapProjectedDrawArea); }