Ejemplo n.º 1
0
 public virtual void ReDraw(ISkillArgs args)
 {
     if (inventoryUI != null)
     {
         inventoryUI.ReDraw(args, this, true);
     }
 }
Ejemplo n.º 2
0
        public override void DoAction(IEventArgs args)
        {
            IGameUnit     player = GetPlayer(args);
            FreeData      fd     = (FreeData)player;
            ItemInventory ii     = new ItemInventory(column, row);

            ii.SetCloseAction(closeAction);
            ii.SetOpenAction(openAction);
            ii.SetName(name);
            ii.SetInventoryUI(inventoryUI);
            ii.SetCanDrop(canDrop);
            ii.SetDropAction(dropAction);
            inventoryUI.ReDraw((ISkillArgs)args, ii, true);
            fd.freeInventory.GetInventoryManager().AddInventory(name, ii);
        }