Пример #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);
        }
Пример #2
0
 public async Task <int> UpdateItemAsync(TaskDBModel item)
 {
     if (item.Id != 0)
     {
         await database.UpdateAsync(item);
     }
     return(item.Id);
 }
Пример #3
0
        /// <summary>
        /// 初始化DBModel
        /// </summary>
        private void InitDBModel()
        {
            //每个表都new
            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();
            LocalizationBModel    = new LocalizationBModel();

            ChapterDBModel   = new ChapterDBModel();
            GameLevelDBModel = new GameLevelDBModel();
            TaskDBModel      = new TaskDBModel();
        }
Пример #4
0
 /// <summary>
 /// 加载表格
 /// </summary>
 public void LoadDataTable()
 {
     //每个表都 LoadData
     ChapterDBModel.LoadData();
     GameLevelDBModel.LoadData();
     TaskDBModel.LoadData();
     JobDBModel.LoadData();
     JobLevelDBModel.LoadData();
     ShopDBModel.LoadData();
     EquipDBModel.LoadData();
     ItemDBModel.LoadData();
     MaterialDBModel.LoadData();
     WorldMapDBModel.LoadData();
     SkillDBModel.LoadData();
     SkillLevelDBModel.LoadData();
 }
Пример #5
0
    /// <summary>
    /// 初始化DBModel
    /// </summary>
    private void InitDBModel()
    {
        //每个表都new

        ChapterDBModel    = new ChapterDBModel();
        GameLevelDBModel  = new GameLevelDBModel();
        TaskDBModel       = new TaskDBModel();
        JobDBModel        = new JobDBModel();
        JobLevelDBModel   = new JobLevelDBModel();
        ShopDBModel       = new ShopDBModel();
        EquipDBModel      = new EquipDBModel();
        ItemDBModel       = new ItemDBModel();
        MaterialDBModel   = new MaterialDBModel();
        WorldMapDBModel   = new WorldMapDBModel();
        SkillDBModel      = new SkillDBModel();
        SkillLevelDBModel = new SkillLevelDBModel();
    }
Пример #6
0
        /// <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();
        }
Пример #7
0
        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();
        }
Пример #8
0
        public async Task <int> InsertItemAsync(TaskDBModel item)
        {
            await database.InsertAsync(item);

            return(item.Id);
        }