Register new PluginBase to PluginManager for storing and handling plugin.
- Аргументы
-
module_tpye | typename class type of plugin |
- Возвращает
void
{
...
}
void RegisterPlugin(string plugin_class_name, bool reg_on_client, bool reg_on_server, bool reg_on_release=true)
Register new PluginBase to PluginManager for storing and handling plugin.
См. определение в файле PluginManager.c строка 183
184 {
185 if ( !reg_on_client )
186 {
188 {
189 return;
190 }
191 }
192
193 if ( !reg_on_server )
194 {
195 if (
GetGame().IsMultiplayer() )
196 {
198 {
199 return;
200 }
201 }
202 }
203
204 if ( !reg_on_release )
205 {
207 {
208 return;
209 }
210 }
211
213 }
ref array< typename > m_PluginRegister
proto native CGame GetGame()
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...
Перекрестные ссылки GetGame(), m_PluginRegister и string::ToType().
Используется в Init(), RegisterPluginDebug() и RegisterPluginDiag().