File tree 2 files changed +19
-1
lines changed
WDE.TrinitySmartScriptEditor 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ using WDE . Common . Database ;
2
+ using WDE . Module . Attributes ;
3
+ using WDE . SmartScriptEditor ;
4
+ using WDE . SmartScriptEditor . Models ;
5
+ using WDE . SmartScriptEditor . Services ;
6
+
7
+ namespace WDE . TrinitySmartScriptEditor . Services ;
8
+
9
+ [ AutoRegister ]
10
+ [ SingleInstance ]
11
+ public class SmartScriptFactory : ISmartScriptFactory
12
+ {
13
+ public ISmartScriptSolutionItem Factory ( int entryOrGuid , SmartScriptType type )
14
+ {
15
+ return new SmartScriptSolutionItem ( entryOrGuid , type ) ;
16
+ }
17
+ }
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ public SmartScriptModule(IScopedContainer scopedContainer) : base(scopedContaine
20
20
public override void RegisterTypes ( IContainerRegistry containerRegistry )
21
21
{
22
22
base . RegisterTypes ( containerRegistry ) ;
23
- AutoRegisterByConvention ( typeof ( SmartFactory ) . Assembly , moduleScope ) ;
23
+ AutoRegisterByConvention ( typeof ( SmartFactory ) . Assembly , containerRegistry ) ;
24
+ AutoRegisterByConvention ( typeof ( SmartScriptModule ) . Assembly , containerRegistry ) ;
24
25
25
26
var t = new ToolSmartEditorViewModel ( ) ;
26
27
containerRegistry . RegisterInstance ( typeof ( ITool ) , t ) ;
You can’t perform that action at this time.
0 commit comments