public void Init(object gameInstance) { var assembly = Assembly.GetExecutingAssembly(); var version = assembly.GetName().Version; // Set up resources that persist outside of sessions ThreadTracker.SetGameThread(); Log.Log("Loading Plugin for SEPC version " + version); try { // Register our compilation symbol state SymbolRegistrar.SetDebugIfDefined(); SymbolRegistrar.SetProfileIfDefined(); // Register our SEPC-managed SessionComponents ComponentRegistrar.AddComponents(assembly); ComponentRegistrar.LoadOnInit(0, assembly); } catch (Exception error) { Log.Error(error); } }
public void Init(object gameInstance) { try { var assembly = Assembly.GetExecutingAssembly(); var version = assembly.GetName().Version; Log.Log("Loading Plugin for GC version " + version); // Register our compilation symbol state SymbolRegistrar.SetDebugIfDefined(); SymbolRegistrar.SetProfileIfDefined(); // Register our SEPC-managed SessionComponents ComponentRegistrar.AddComponents(Assembly.GetExecutingAssembly()); ComponentRegistrar.LoadOnInit((int)Session.Groups.Init, Assembly.GetExecutingAssembly()); } catch (Exception error) { Log.Error(error); } }
public static bool IsDebugDefined(this Assembly assembly) { return(SymbolRegistrar.IsDebugDefined(assembly)); }