Ejemplo n.º 1
0
    void Generate()
    {
        MFAConfigPath.AutoSetupConfig();
        MFADatas.Single.AutoReload();

        int beginID = m_target.BeginID;
        int endID   = m_target.EndID;

        if (endID < beginID)
        {
            endID = beginID;
        }

        int exCount = 0;

        foreach (var kv in MFADatas.Single.AnimationExport.m_Data)
        {
            var id = kv.Key;
            if (id < beginID || id > endID)
            {
                continue;                             //id超出范围
            }
            exCount++;
            var exInfo = kv.Value;

            //执行导出
            MFAExportCore.GenerateOne(exInfo);
        }

        if (exCount < 1)
        {
            Debug.Log("没有执行任何导出。");
        }
    }
Ejemplo n.º 2
0
    void Generate()
    {
        if (m_target.FilterTagList == null || m_target.FilterTagList.Length < 1)
        {
            Debug.Log("没有执行任何导出。");
            return;
        }
        MFAConfigPath.AutoSetupConfig();
        MFADatas.Single.AutoReload();

        int exCount = 0;

        foreach (var kv in MFADatas.Single.AnimationExport.m_Data)
        {
            var exInfo = kv.Value;

            if (!CmpTag(exInfo.FindTag, m_target.FilterTagList))
            {
                continue;                                                 //tag不匹配
            }
            exCount++;

            //执行导出
            MFAExportCore.GenerateOne(exInfo);
        }

        if (exCount < 1)
        {
            Debug.Log("没有执行任何导出。");
        }
    }
Ejemplo n.º 3
0
    public MFAData_AnimationExport()
    {
        string   path  = MFAConfigPath.GenerateCfgPath("AnimationExport");
        FileInfo finfo = new FileInfo(path);

        m_LastWriteTime = finfo.LastWriteTime;

        ReLoad(path);
    }
Ejemplo n.º 4
0
    public MFAData_ClipDefine()
    {
        string   path  = MFAConfigPath.GenerateCfgPath(TabName);
        FileInfo finfo = new FileInfo(path);

        m_LastWriteTime = finfo.LastWriteTime;

        ReLoad(path);
    }
Ejemplo n.º 5
0
    public void AutoReload()
    {
        string   path          = MFAConfigPath.GenerateCfgPath("AnimationExport");
        FileInfo finfo         = new FileInfo(path);
        var      lastWriteTime = finfo.LastWriteTime;

        if (lastWriteTime != m_LastWriteTime)
        {
            m_LastWriteTime = lastWriteTime;
            ReLoad(path);
        }
    }
Ejemplo n.º 6
0
    public MFAData_Frames()
    {
        string   path          = MFAConfigPath.GenerateCfgPath("Frames");
        FileInfo finfo         = new FileInfo(path);
        var      lastWriteTime = finfo.LastWriteTime;

        if (lastWriteTime != m_LastWriteTime)
        {
            m_LastWriteTime = lastWriteTime;
            ReLoad(path);
        }
    }
Ejemplo n.º 7
0
    void Generate()
    {
        if (m_target.IDList == null || m_target.IDList.Length < 1)
        {
            Debug.Log("没有执行任何导出。");
            return;
        }
        MFAConfigPath.AutoSetupConfig();
        MFADatas.Single.AutoReload();

        foreach (var id in m_target.IDList)
        {
            var exInfo = MFADatas.Single.AnimationExport.Get(id);

            if (exInfo == null)
            {
                Debug.LogWarning("不存在的任务ID " + id);
                continue;
            }

            //执行导出
            MFAExportCore.GenerateOne(exInfo);
        }
    }