/// <summary> /// 加载表格 /// </summary> public void LoadDataTable() { //每个都要loaddata Sys_CodeDBModel.LoadData(); Sys_EffectDBModel.LoadData(); LocalizationDBModel.LoadData(); Sys_PrefabDBModel.LoadData(); Sys_SoundDBModel.LoadData(); Sys_StorySoundDBModel.LoadData(); Sys_UIFormDBModel.LoadData(); Sys_UIItemDBModel.LoadData(); Sys_SceneDBModel.LoadData(); Sys_SceneDatailDBModel.LoadData(); ChapterDBModel.LoadData(); GameLevelDBModel.LoadData(); TaskDBModel.LoadData(); JobDBModel.LoadData(); //所有加载表格完毕(c#里的) //GameEntry.Event.CommonEvent.Dispatch(SysEventId.LoadDataTableComplete); }
/// <summary> /// 初始化DBModel /// </summary> private void InitDBModel() { Sys_CodeDBModel = new Sys_CodeDBModel(); Sys_EffectDBModel = new Sys_EffectDBModel(); LocalizationDBModel = new LocalizationDBModel(); Sys_PrefabDBModel = new Sys_PrefabDBModel(); Sys_SoundDBModel = new Sys_SoundDBModel(); Sys_StorySoundDBModel = new Sys_StorySoundDBModel(); Sys_UIFormDBModel = new Sys_UIFormDBModel(); Sys_UIItemDBModel = new Sys_UIItemDBModel(); TaskDBModel = new TaskDBModel(); Sys_SceneDBModel = new Sys_SceneDBModel(); Sys_SceneDatailDBModel = new Sys_SceneDatailDBModel(); ChapterDBModel = new ChapterDBModel(); GameLevelDBModel = new GameLevelDBModel(); JobDBModel = new JobDBModel(); }
public void Clear() { //每个都要Clear Sys_CodeDBModel.Clear(); Sys_EffectDBModel.Clear(); LocalizationDBModel.Clear(); Sys_PrefabDBModel.Clear(); Sys_StorySoundDBModel.Clear(); Sys_StorySoundDBModel.Clear(); Sys_UIFormDBModel.Clear(); Sys_UIItemDBModel.Clear(); Sys_SceneDBModel.Clear(); Sys_SceneDatailDBModel.Clear(); ChapterDBModel.Clear(); GameLevelDBModel.Clear(); TaskDBModel.Clear(); JobDBModel.Clear(); }