Esempio n. 1
0
        public override void ExportGraph(List <InternalBaseGraphAsset> assets)
        {
            for (int i = 0; i < assets.Count; i++)
            {
                if (assets[i] is AoeGraphAsset)
                {
                    AoeGraphAsset asset = assets[i] as AoeGraphAsset;

                    BaseGraph graphData = asset.DeserializeGraph();

                    //运行时数据结构
                    AoeModel model = SerializeToAoeModel(graphData, asset);

                    string filePath = SkillDef.GetAoeCnfPath(asset.aoeId);
                    IOHelper.WriteText(JsonMapper.ToJson(model), filePath);

                    Debug.Log($"Aoe配置生成成功>>>>{filePath}");
                }
            }

            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
        }