12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using XGame.Database;
- using XGame.Framework.Asyncs;
- using XGame.Framework.Loadable;
- using XGame.Framework.Nodes;
- namespace FL.Nodes.GameMain
- {
- public class TableComponent : NodeComponent, ILoadAsyncHandle
- {
- public override void OnDisable()
- {
- Context.Tree.Remove(NodeKeys.Partners);
- Context.Tree.Remove(NodeKeys.DragonEgg);
- }
- public override void OnEnable(object intent)
- {
- Context.Tree.AddAsync(NodeKeys.Partners);
- Context.Tree.AddAsync(NodeKeys.DragonEgg);
- }
- void ILoadAsyncHandle.OnLoadAsync(IAsyncGroup group)
- {
- ChapterTableRepo.LoadAsync().Join(group);
- MapTableRepo.LoadAsync().Join(group);
- MonsterTableRepo.LoadAsync().Join(group);
- PartnerTableRepo.LoadAsync().Join(group);
- partnerStarUpTableRepo.LoadAsync().Join(group);
- partnerLvUpTableRepo.LoadAsync().Join(group);
- SkillTableRepo.LoadAsync().Join(group);
- SkillVfxsTableRepo.LoadAsync().Join(group);
- BuffTableRepo.LoadAsync().Join(group);
- EquipmentTableRepo.LoadAsync().Join(group);
- EquipmentBaseAttrTableRepo.LoadAsync().Join(group);
- EquipmentDisassemblyTableRepo.LoadAsync().Join(group);
- EquipmentDropTableRepo.LoadAsync().Join(group);
- EquipmentPeculiarAttrTableRepo.LoadAsync().Join(group);
- LevelTableRepo.LoadAsync().Join(group);
- AttrDescTableRepo.LoadAsync().Join(group);
- ItemTableRepo.LoadAsync().Join(group);
- EpigraphTableRepo.LoadAsync().Join(group);
- epigraphUpTableRepo.LoadAsync().Join(group);
- treasureTableRepo.LoadAsync().Join(group);
- treasureBonusTableRepo.LoadAsync().Join(group);
- DropTableRepo.LoadAsync().Join(group);
- }
- void ILoadAsyncHandle.OnUnloadAsync(IAsyncGroup group)
- {
- ChapterTableRepo.Unload();
- MapTableRepo.Unload();
- MonsterTableRepo.Unload();
- PartnerTableRepo.Unload();
- SkillTableRepo.Unload();
- SkillVfxsTableRepo.Unload();
- BuffTableRepo.Unload();
- EquipmentTableRepo.Unload();
- EquipmentBaseAttrTableRepo.Unload();
- EquipmentDisassemblyTableRepo.Unload();
- EquipmentDropTableRepo.Unload();
- EquipmentPeculiarAttrTableRepo.Unload();
- LevelTableRepo.Unload();
- ItemTableRepo.Unload();
- partnerLvUpTableRepo.Unload();
- AttrDescTableRepo.Unload();
- partnerStarUpTableRepo.Unload();
- DropTableRepo.Unload();
- treasureTableRepo.Unload();
- treasureBonusTableRepo.Unload();
- EpigraphTableRepo.Unload();
- }
- }
- }
|