@@ -33,25 +33,23 @@ namespace Orts.Common.Scripting
33
33
[ CallOnThread ( "Loader" ) ]
34
34
public class ScriptManager
35
35
{
36
- readonly Simulator Simulator ;
37
36
readonly IDictionary < string , Assembly > Scripts = new Dictionary < string , Assembly > ( ) ;
38
37
static readonly string [ ] ReferenceAssemblies = new [ ]
39
38
{
40
- typeof ( System . Object ) . GetTypeInfo ( ) . Assembly . Location ,
41
- typeof ( System . Diagnostics . Debug ) . GetTypeInfo ( ) . Assembly . Location ,
42
- typeof ( ORTS . Common . ElapsedTime ) . GetTypeInfo ( ) . Assembly . Location ,
43
- typeof ( ORTS . Scripting . Api . Timer ) . GetTypeInfo ( ) . Assembly . Location ,
44
- typeof ( System . Linq . Enumerable ) . GetTypeInfo ( ) . Assembly . Location ,
39
+ typeof ( System . Object ) . Assembly . Location ,
40
+ typeof ( System . Diagnostics . Debug ) . Assembly . Location ,
41
+ typeof ( ORTS . Common . ElapsedTime ) . Assembly . Location ,
42
+ typeof ( ORTS . Scripting . Api . Timer ) . Assembly . Location ,
43
+ typeof ( System . Linq . Enumerable ) . Assembly . Location ,
45
44
} ;
46
45
static MetadataReference [ ] References = ReferenceAssemblies . Select ( r => MetadataReference . CreateFromFile ( r ) ) . ToArray ( ) ;
47
46
static CSharpCompilationOptions CompilationOptions = new CSharpCompilationOptions (
48
47
OutputKind . DynamicallyLinkedLibrary ,
49
48
optimizationLevel : Debugger . IsAttached ? OptimizationLevel . Debug : OptimizationLevel . Release ) ;
50
49
51
50
[ CallOnThread ( "Loader" ) ]
52
- internal ScriptManager ( Simulator simulator )
51
+ internal ScriptManager ( )
53
52
{
54
- Simulator = simulator ;
55
53
}
56
54
57
55
public object Load ( string [ ] pathArray , string name , string nameSpace = "ORTS.Scripting.Script" )
0 commit comments