コード例 #1
0
    /// <summary>
    /// 加速Buffer
    /// </summary>
    /// <param name="value">加速比例(为1时加速一倍).</param>
    /// <param name="continueTime">持续时间.</param>
    /// <param name="bufferUI">UI样式,为0时不显示.</param>
    /// <param name="addMore">If set to <c>true</c> 是否可以叠加.</param>
    /// <param name="permanent">If set to <c>true</c> 是否永久添加.</param>
    public BufferStateBase BufferSpeedUp(float value, float continueTime, int bufferUI, bool addMore, bool permanent)
    {
        BufferArgs args = new BufferArgs();

        args.m_iBufferUI      = bufferUI;
        args.m_fValue1        = value;
        args.m_Addition       = addMore;
        args.m_ContinuousTime = continueTime;
        args.m_Permanent      = permanent;
        return(m_BufferMgr.BufferAdd(BufferType.Buffer.BufferSpeedUp, args));
    }