예제 #1
0
        public EditSpellPresenter(
            IEditSpellView view,
            IEditSpellService editSpellService)
        {
            this.view             = view;
            this.editSpellService = editSpellService;

            this.view.Cancel       += View_Cancel;
            this.view.Ok           += View_Ok;
            this.view.LaunchEditor += View_LaunchEditor;
        }
예제 #2
0
        public PlayerInventoryPresenter(IPlayerInventoryView view, IEditSpellService editSpellService)
        {
            this.view             = view;
            this.editSpellService = editSpellService;

            this.view.Exit                   += View_Exit;
            this.view.UseItem                += View_UseItem;
            this.view.EquipItem              += View_EquipItem;
            this.view.EquipHoldableItemLeft  += View_EquipHoldableItemLeft;
            this.view.EquipHoldableItemRight += View_EquipHoldableItemRight;
            this.view.DropItem               += View_DropItem;
            this.view.DropStack              += View_DropStack;
            this.view.TakeOffItem            += View_TakeOffItem;
            this.view.CheckScroll            += View_CheckScroll;
        }