Esempio n. 1
0
        private void _CreateStories(Stories stories, EnhancerCreator.Enhancer enhancer = null)
        {
            if (enhancer != null)
            {
                enhancer(_CreateStories)(stories);
                return;
            }

            stories.Dispatch          = DefImpl_Dispatch;
            stories.Connect           = DefImpl_Connect;
            stories.Disconnect        = DefImpl_Disconnect;
            stories.Listen            = DefImpl_Listen;
            stories.RemoveListener    = DefImpl_RemoveListener;
            stories.GetConnectedCount = DefImpl_GetConnectedCount;
            stories.GetStories        = DefImpl_GetStories;

            if (entryStory != null)
            {
                entryStory.InitStory();
            }
        }
Esempio n. 2
0
 public void CreateStories(Stories stories)
 {
     _CreateStories(stories, GetComposedEnhancers());
 }