示例#1
0
    /// <summary>
    /// Initializes a new instance of the <see cref="FlyTextGui"/> class.
    /// </summary>
    internal FlyTextGui()
    {
        this.Address = new FlyTextGuiAddressResolver();
        this.Address.Setup();

        this.addFlyTextNative  = Marshal.GetDelegateForFunctionPointer <AddFlyTextDelegate>(this.Address.AddFlyText);
        this.createFlyTextHook = new Hook <CreateFlyTextDelegate>(this.Address.CreateFlyText, this.CreateFlyTextDetour);
    }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FlyTextGui"/> class.
        /// </summary>
        /// <param name="scanner">The SigScanner instance.</param>
        /// <param name="dalamud">The Dalamud instance.</param>
        internal FlyTextGui(SigScanner scanner, Dalamud dalamud)
        {
            this.Dalamud = dalamud;

            this.Address = new FlyTextGuiAddressResolver();
            this.Address.Setup(scanner);

            this.addFlyTextNative  = Marshal.GetDelegateForFunctionPointer <AddFlyTextDelegate>(this.Address.AddFlyText);
            this.createFlyTextHook = new Hook <CreateFlyTextDelegate>(this.Address.CreateFlyText, this.CreateFlyTextDetour);
        }