コード例 #1
0
        public IInventorySlot_CommandLogic DoCreate_LibraryLogic_Command(EInventorySlot_CommandEvent eEvent, EInventory_CommandLogicName eLogic, EInventorySlot_CommandEvent eEventUndo = EInventorySlot_CommandEvent.None)
        {
            IInventorySlot_CommandLogic pLogic = null;

            switch (eLogic)
            {
            case EInventory_CommandLogicName.Instantiate_CloneSlot: pLogic = new Instantiate_CloneSlot(); break;

            default: Debug.LogError("Error - Not Found Logic"); return(null);
            }

            list_CommandLogic.Add(new InventorySlot_CommandLogic(eEvent, eEventUndo, pLogic));
            return(pLogic);
        }
コード例 #2
0
 public InventorySlot_CommandLogic(EInventorySlot_CommandEvent eEvent, EInventorySlot_CommandEvent eEvent_Undo, IInventorySlot_CommandLogic pLogic)
 {
     this.eEvent = eEvent; this.pLogic = pLogic; this.eEvent_Undo = eEvent_Undo;
 }