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(); }
public ArtifactDropRegistrationEvent(ArtifactDropRegistry registry, EventPhase phase) : base(phase) { Registry = registry; }