예제 #1
0
        public StoryBlock CreateStoryBlockItem(StoryClip parentUiItem)
        {
            if (parentUiItem == null)
            {
                parentUiItem = RootClip;
            }

            StoryBlock item = new StoryBlock(this);

            ItemCreated?.Invoke(item, parentUiItem);

            parentUiItem.AddChildItem(item);

            return(item);
        }
예제 #2
0
        public static OrderBase CreateOrder(StoryBlock ownerBlock, OrderType orderType)
        {
            switch (orderType)
            {
            case OrderType.Message:
                return(new MessageOrder(ownerBlock));

            case OrderType.Ui:
                return(new UiOrder(ownerBlock));

            case OrderType.Logic:
                return(new LogicOrder(ownerBlock));

            case OrderType.Event:
                return(new EventOrder(ownerBlock));

            case OrderType.Clip:
                return(new ClipOrder(ownerBlock));

            default:
                throw new NotImplementedException();
            }
        }
예제 #3
0
 public LogicOrder(StoryBlock ownerBlock) : base(ownerBlock)
 {
 }
예제 #4
0
 public UiOrder(StoryBlock ownerBlock) : base(ownerBlock)
 {
 }
예제 #5
0
 public MessageOrder(StoryBlock ownerBlock) : base(ownerBlock)
 {
 }
예제 #6
0
 public ClipOrder(StoryBlock ownerBlock) : base(ownerBlock)
 {
 }
예제 #7
0
 public EventOrder(StoryBlock ownerBlock) : base(ownerBlock)
 {
 }
예제 #8
0
 public OrderBase(StoryBlock ownerBlock)
 {
     this.OwnerBlock = ownerBlock;
 }