6
6
using SourceSharp . Core . Utils ;
7
7
using SourceSharp . Sdk . Interfaces ;
8
8
using System ;
9
+ using System . Diagnostics ;
9
10
using System . IO ;
10
11
using System . Reflection ;
11
12
using System . Runtime . InteropServices ;
@@ -56,8 +57,8 @@ private static int Initialize()
56
57
ValidateScopes = true
57
58
} ) ;
58
59
59
- Console . WriteLine ( "MaxClients is " + Bridges . SourceSharp . GetMaxClients ( ) ) ;
60
- Console . WriteLine ( "MaxHumanPlayers is " + Bridges . SourceSharp . GetMaxHumanPlayers ( ) ) ;
60
+ Debug . Print ( "MaxClients is " + Bridges . SourceSharp . GetMaxClients ( ) ) ;
61
+ Debug . Print ( "MaxHumanPlayers is " + Bridges . SourceSharp . GetMaxHumanPlayers ( ) ) ;
61
62
62
63
Boot ( serviceProvider ) ;
63
64
@@ -83,11 +84,12 @@ private static void ConfigureServices(IServiceCollection services, IConfiguratio
83
84
services . AddSingleton < ISourceSharpBase , SourceSharp > ( ) ;
84
85
services . AddSingleton < IShareSystemBase , ShareSystem > ( ) ;
85
86
86
- services . AddSingleton < IGameEventListener , GameEventListener > ( ) ;
87
+ services . AddSingleton < IAdminManager , AdminManager > ( ) ;
87
88
services . AddSingleton < ICommandListener , CommandListener > ( ) ;
89
+ //services.AddSingleton<IConVarManager, ConVarManager>();
90
+ //services.AddSingleton<IGameEventListener, GameEventListener>();
88
91
services . AddSingleton < IPlayerListener , PlayerListener > ( ) ;
89
92
services . AddSingleton < IPlayerManagerBase , PlayerManager > ( ) ;
90
- services . AddSingleton < IAdminManager , AdminManager > ( ) ;
91
93
92
94
services . AddSingleton < IPluginManager , PluginManager > ( ) ;
93
95
}
@@ -101,7 +103,7 @@ private static void Boot(IServiceProvider services)
101
103
}
102
104
103
105
// Plugin Manager should be the LAST!
104
- services . GetRequiredService < IPluginManager > ( ) . Initialize ( ) ;
106
+ services . GetRequiredService < IPluginManager > ( ) . Initialize ( services ) ;
105
107
106
108
// export caller invoker
107
109
Invoker . Initialize ( services ) ;
0 commit comments