public Housemate( [RequiredVersion("1.0")] DalamudPluginInterface pluginInterface, [RequiredVersion("1.0")] CommandManager commandManager, [RequiredVersion("1.0")] DataManager dataManager, [RequiredVersion("1.0")] ObjectTable objectTable, [RequiredVersion("1.0")] ClientState clientState, [RequiredVersion("1.0")] GameGui gameGui, [RequiredVersion("1.0")] SigScanner sigScanner) { _pi = pluginInterface; _commandManager = commandManager; _configuration = _pi.GetPluginConfig() as Configuration ?? new Configuration(); _configuration.Initialize(_pi); _ui = new HousemateUI(_configuration, objectTable, clientState, gameGui); commandManager.AddHandler(CommandName, new CommandInfo(OnCommand) { HelpMessage = $"Display the Housemate configuration interface.\n" + $"Toggle the Housemate object overlay with '{CommandName} toggle'" }); HousingData.Init(dataManager); HousingMemory.Init(sigScanner); _pi.UiBuilder.Draw += DrawUI; _pi.UiBuilder.OpenConfigUi += DrawConfigUI; }
public static void Init(DataManager dataMgr) { Instance = new HousingData(dataMgr); }