コード例 #1
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();
            }
        }
コード例 #2
0
 public EffectRenderer(INativeGraphicsManager gfxManager,
                       OldNPCRenderer npc,
                       Action cleanupAction = null)
     : this(gfxManager, (DrawableGameComponent)npc, cleanupAction)
 {
 }
コード例 #3
0
 private Rectangle GetTargetRectangle(OldNPCRenderer npc)
 {
     return(npc.MapProjectedDrawArea);
 }