Example #1
0
        /// <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);
        }
Example #2
0
 /// <summary>
 /// 初始化表格
 /// </summary>
 private void InitDBModel()
 {
     //每个表都new
     ChapterDBModel        = new ChapterDBModel();
     GameLevelDBModel      = new GameLevelDBModel();
     Sys_CodeDBModel       = new Sys_CodeDBModel();
     Sys_EffectDBModel     = new Sys_EffectDBModel();
     Sys_PrefabDBModel     = new Sys_PrefabDBModel();
     Sys_SoundDBModel      = new Sys_SoundDBModel();
     Sys_StorySoundDBModel = new Sys_StorySoundDBModel();
     Sys_UIFormDBModel     = new Sys_UIFormDBModel();
     LocalizationDBModel   = new LocalizationDBModel();
     //load完毕
 }
Example #3
0
 public void LoadDataTable()
 {
     //可能在lua中读取load,只load自己需要的表
     //每个表都LoadData
     ChapterDBModel.LoadData();
     GameLevelDBModel.LoadData();
     Sys_CodeDBModel.LoadData();
     Sys_EffectDBModel.LoadData();
     Sys_PrefabDBModel.LoadData();
     Sys_SoundDBModel.LoadData();
     Sys_StorySoundDBModel.LoadData();
     Sys_UIFormDBModel.LoadData();
     LocalizationDBModel.LoadData();
 }
Example #4
0
        public void Clear()
        {
            //每个表都Clear
            Sys_UIFormDBModel.Clear();
            Sys_EffectDBModel.Clear();
            Sys_PrefabDBModel.Clear();
            Sys_SoundDBModel.Clear();
            Sys_StorySoundDBModel.Clear();
            Sys_UIFormDBModel.Clear();
            LocalizationBModel.Clear();

            ChapterDBModel.Clear();
            GameLevelDBModel.Clear();
            TaskDBModel.Clear();
        }
Example #5
0
        /// <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_SceneDBModel.LoadData();
            Sys_SceneDetailDBModel.LoadData();

            ChapterDBModel.LoadData();
            // GameLevelDBModel.LoadData();
            //TaskDBModel.LoadData();
        }
Example #6
0
        /// <summary>
        /// 初始化DBModel
        /// </summary>
        private void InitDBModel()
        {
            //每个表都new
            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_SceneDBModel       = new Sys_SceneDBModel();
            Sys_SceneDetailDBModel = new Sys_SceneDetailDBModel();

            ChapterDBModel   = new ChapterDBModel();
            GameLevelDBModel = new GameLevelDBModel();
            TaskDBModel      = new TaskDBModel();
        }
Example #7
0
        public void LoadDataTable()
        {
            //可能在lua中读取load,只load自己需要的表
            //每个表都LoadData
            ChapterDBModel.LoadData();
            GameLevelDBModel.LoadData();
            Sys_CodeDBModel.LoadData();
            Sys_EffectDBModel.LoadData();
            Sys_PrefabDBModel.LoadData();
            Sys_SoundDBModel.LoadData();
            Sys_StorySoundDBModel.LoadData();
            Sys_UIFormDBModel.LoadData();
            LocalizationDBModel.LoadData();

            //所有表加载完毕
            GameEntry.Event.CommonEvent.Dispatch(SysEventId.LoadDataTableComplete);
        }
Example #8
0
        public void LoadDataTable()
        {
            //每个表都LoadData
            Sys_UIFormDBModel.LoadData();
            Sys_EffectDBModel.LoadData();
            Sys_PrefabDBModel.LoadData();
            Sys_SoundDBModel.LoadData();
            Sys_StorySoundDBModel.LoadData();
            Sys_UIFormDBModel.LoadData();
            LocalizationBModel.LoadData();

            ChapterDBModel.LoadData();
            GameLevelDBModel.LoadData();
            TaskDBModel.LoadData();

            //所有表Load完毕
            GameEntry.Event.CommonEvent.Dispatch(SysEventId.LoadDataTableComplete);
        }