Example #1
0
 public override void Entry(IModHelper helper)
 {
     this.helper   = helper;
     config        = helper.ReadConfig <ModConfig>();
     highlighter   = new RangeHighlighter(this.Monitor, helper, config);
     api           = _api_private = new RangeHighlightAPI(this);
     defaultShapes = new DefaultShapes(api);
     installDefaultHighlights();
     helper.Events.GameLoop.GameLaunched += onLaunched;
 }
Example #2
0
 public override void Entry(IModHelper helper)
 {
     this.helper = helper;
     I18n.Init(helper.Translation);
     config        = helper.ReadConfig <ModConfig>();
     highlighter   = new RangeHighlighter(this);
     api           = _api_private = new RangeHighlightAPI(this);
     defaultShapes = new DefaultShapes(api);
     helper.Events.GameLoop.GameLaunched    += onLaunched;
     helper.Events.GameLoop.SaveLoaded      += OnSaveLoaded;
     helper.Events.GameLoop.ReturnedToTitle += OnReturnedToTitle;
 }