public List <Guid> GetDependancies(ParameterStack stack) { // clear list of dependancies _dependancyList.Clear(); // instanciate handler of ComponentLoader.OnPluginAccessed ComponentLoader.PluginAccessed handler = new ComponentLoader.PluginAccessed(OnGuidLoaded); ComponentLoader.OnPluginAccessed += handler; // instantiate factory PicFactory factory = new PicFactory(); _instance.CreateFactoryEntities(factory, stack, Transform2D.Identity); // on plugin accessed ComponentLoader.OnPluginAccessed -= handler; // dependancy list return(_dependancyList); }
public List<Guid> GetDependancies(ParameterStack stack) { // clear list of dependancies _dependancyList.Clear(); // instanciate handler of ComponentLoader.OnPluginAccessed ComponentLoader.PluginAccessed handler = new ComponentLoader.PluginAccessed(OnGuidLoaded); ComponentLoader.OnPluginAccessed += handler; // instantiate factory PicFactory factory = new PicFactory(); _instance.CreateFactoryEntities(factory, stack, Transform2D.Identity); // on plugin accessed ComponentLoader.OnPluginAccessed -= handler; // dependancy list return _dependancyList; }