//nsql /// <summary> /// sql里面一行最大数据 /// (key+value+type)*150 = 450 /// 注意这个数必须是3的倍数,否则会出问题比如KVContainer.CheckAndLoadTreeItemData2Local中 /// </summary> //public const int MAX_NUM = 450; public static int GetMaxSqlDataNum(string editorType) { int MAX_NUM = 0; switch (editorType) { case "skill": MAX_NUM = ActiveSkillDataTemplate.GetMaxSqlDataNum(); break; case "item": MAX_NUM = ItemDataTemplate.GetMaxSqlDataNum(); break; case "task": MAX_NUM = TaskDataTemplate.GetMaxSqlDataNum(); break; default: Log.e("SQLiteHelper4DataEditor", "GetMaxSqlDataNum", "未知的编辑器类型editorType:" + editorType, BeShowLog); break; } return(MAX_NUM); }
public static Dictionary <int, KVData> GetKVTemplateData(string editorType) { switch (editorType) { case "skill": return(ActiveSkillDataTemplate.GetTemplateData()); break; case "item": return(ItemDataTemplate.GetTemplateData()); break; case "task": return(TaskDataTemplate.GetTemplateData()); break; } return(null); }
public static byte[] FilterData(string editorType, Dictionary <string, Dictionary <int, KVData> > orignalData) { Debug.Log("GEditorConfig.FilterData-->editorType:" + editorType); switch (editorType) { case "skill": return(ActiveSkillDataTemplate.FilterExportData(orignalData)); break; case "item": return(ItemDataTemplate.FilterExportData(orignalData)); break; case "task": return(TaskDataTemplate.FilterExportData(orignalData)); break; } return(null); }