Example #1
0
 public static void Initialize(Game1 game)
 {
     #if DEBUG
     Logger.MaskLevel = LogLevel.Trace;
     #else
     Logger.MaskLevel = LogLevel.Info;
     #endif
     Logger.Log(LogLevel.Info, "GemfruitMod", "Loading hooks...");
     HookLoader.LoadHooks();
     Logger.Log(LogLevel.Info, "GemfruitMod", "ResourceRegistry creation");
     ResourceRegistry = new ResourceRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "PlaceableRegistry creation");
     PlaceableRegistry = new PlaceableRegistry(new LocalizedContentManager(game.Content.ServiceProvider, game.Content.RootDirectory));
     Logger.Log(LogLevel.Info, "GemfruitMod", "ItemRegistry creation");
     ItemRegistry = new ItemRegistry(new LocalizedContentManager(game.Content.ServiceProvider, game.Content.RootDirectory));
     Logger.Log(LogLevel.Info, "GemfruitMod", "MonsterRegistry creation");
     MonsterRegistry = new MonsterRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "MineshaftSpawnRegistry creation");
     MineshaftSpawnRegistry = new MineshaftSpawnRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "WildernessSpawnRegistry creation");
     WildernessSpawnRegistry = new WildernessSpawnRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "PreservesRecipeRegistry creation");
     PreservesRecipeRegistry = new PreservesRecipeRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "KegRecipeRegistry creation");
     KegRecipeRegistry = new KegRecipeRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "MayonnaiseRecipeRegistry creation");
     MayonnaiseRecipeRegistry = new MayonnaiseRecipeRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "CrystalariumRecipeRegistry creation");
     CrystalariumRecipeRegistry = new CrystalariumRecipeRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "ArtifactDropRegistry creation");
     ArtifactDropRegistry = new ArtifactDropRegistry();
     Logger.Log(LogLevel.Info, "GemfruitMod", "GeodeResultRegistry creation");
     GeodeResultRegistry = new GeodeResultRegistry();
 }
Example #2
0
        private void InitializePresenter(IApplicationView aView, ISpyManager aSpyManager)
        {
            _selectedProcesses = Enumerable.Empty <IProcess>();
            _selectedFunctions = Enumerable.Empty <Function>();
            _view       = aView;
            _spyManager = aSpyManager;


            _hookLoader = new HookLoader(_hookingSettings, FilterProcessesToApplyHookingSettingsOn, AddHookForRunningProcess);

            InitializeProcessHandlers();

            _spyManager.ProcessStartedHandler    = ProcessStartedHandler;
            _spyManager.ProcessTerminatedHandler = ProcessTerminatedHandler;
            _spyManager.FunctionCalledHandler    = FunctionCalledHandler;
            _spyManager.HookStateChangedHandler  = HookStateChangedHandler;
            _spyManager.AgentLoadHandler         = AgentLoadHandler;
        }
Example #3
0
 public HookLoaderHandler(HookLoader aHookLoader)
 {
     _hookLoader = aHookLoader;
 }