public StoryBlock CreateStoryBlockItem(StoryClip parentUiItem) { if (parentUiItem == null) { parentUiItem = RootClip; } StoryBlock item = new StoryBlock(this); ItemCreated?.Invoke(item, parentUiItem); parentUiItem.AddChildItem(item); return(item); }
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(); } }
public LogicOrder(StoryBlock ownerBlock) : base(ownerBlock) { }
public UiOrder(StoryBlock ownerBlock) : base(ownerBlock) { }
public MessageOrder(StoryBlock ownerBlock) : base(ownerBlock) { }
public ClipOrder(StoryBlock ownerBlock) : base(ownerBlock) { }
public EventOrder(StoryBlock ownerBlock) : base(ownerBlock) { }
public OrderBase(StoryBlock ownerBlock) { this.OwnerBlock = ownerBlock; }