using System;
using Dalamud.Plugin;
namespace XivCommon;
///
/// A base class for accessing XivCommon functionality.
///
public class XivCommonBase : IDisposable {
///
/// Game functions and events
///
public GameFunctions Functions { get; }
///
///
/// Construct a new XivCommon base.
///
///
/// This will automatically enable hooks based on the hooks parameter.
///
///
/// Flags indicating which hooks to enable
public XivCommonBase(DalamudPluginInterface @interface, Hooks hooks = HooksExt.DefaultHooks) {
this.Functions = new GameFunctions(@interface, hooks);
}
///
public void Dispose() {
this.Functions.Dispose();
}
}