Esempio n. 1
0
        /// <summary>
        /// 导出spelllogic脚本到csv
        /// </summary>
        /// <param name="fullPatch"></param>
        /// <returns></returns>
        public DataTableSerializer.FileExportReslut ExportSpellLogicToCsv(string fullPatch)
        {
            if (null == mConditionEditor)
            {
                mConditionEditor = SpellEditorForm.Instance.mConditionEditor;
                mEffectEditor    = SpellEditorForm.Instance.mEffectEditor;
            }
            DataTable t = new DataTable();

            if (!EncodeSpellLogicDataTable(ref t, mLogicTree))
            {
                return(DataTableSerializer.FileExportReslut.RESLUT_ERROR);
            }
            string[] headerText = new string[2];
            headerText[0] = "技能ID,事件ID,客户端条件列表,客户端效果列表,服务器条件列表,服务器效果列表";
            headerText[1] = "int,int,string,string,string,string";
            if (t.Rows.Count <= 0)
            {
                Trace.Warring("文件为空:" + fullPatch);
                return(DataTableSerializer.FileExportReslut.RESLUT_EMPTYFILE);
            }
            if (!DataTableSerializer.SaveToCSV(t, fullPatch, headerText))
            {
                Trace.Error("文件导出失败:" + fullPatch);
                return(DataTableSerializer.FileExportReslut.RESLUT_ERROR);
            }
            Trace.Normal("文件导出成功:" + fullPatch);
            return(DataTableSerializer.FileExportReslut.RESLUT_OK);
        }
Esempio n. 2
0
        public SpellEditorForm()
        {
            InitializeComponent();
            WrapperReflection.Load();

            mLogicEditor     = new SpellLogicForm();
            mConditionEditor = new ConditionForm();
            mEffectEditor    = new EffectForm();
            mBitMaskForm     = new BitMaskForm();
            Instance         = this;
        }
Esempio n. 3
0
 private void SpellLogicForm_Load(object sender, EventArgs e)
 {
     mConditionEditor = SpellEditorForm.Instance.mConditionEditor;
     mEffectEditor    = SpellEditorForm.Instance.mEffectEditor;
 }