public void Add(Disposer disposer) { this.addDisposers.Add(disposer); }
public void Remove(Disposer disposer) { this.removeDisposers.Add(disposer); }
public async Task Save(Disposer disposer, bool needCache, CancellationToken cancellationToken) { Session session = Game.Scene.GetComponent <NetInnerComponent>().Get(dbAddress); await session.Call(new DBSaveRequest { Disposer = disposer, NeedCache = needCache }, cancellationToken); }
public async void SaveLog(Disposer disposer) { Session session = Game.Scene.GetComponent <NetInnerComponent>().Get(dbAddress); await session.Call(new DBSaveRequest { Disposer = disposer, NeedCache = false, CollectionName = "Log" }); }
public void Awake(Disposer disposer) { EntityTypeInfo entityTypeInfo = this.eventInfo[disposer.GetType()]; entityTypeInfo.Get(EntityEventType.Awake)?.Run(disposer); }
public void Awake(Disposer disposer, object p1, object p2, object p3) { EntityTypeInfo entityTypeInfo = this.eventInfo[disposer.GetType()]; entityTypeInfo.Get(EntityEventType.Awake3)?.Run(disposer, p1, p2, p3); }
public async Task Save(Disposer disposer, bool needCache = true) { Session session = Game.Scene.GetComponent <NetInnerComponent>().Get(dbAddress); await session.Call <DBSaveResponse>(new DBSaveRequest { Disposer = disposer, NeedCache = needCache }); }
public void Awake(Disposer disposer, object p1, object p2, object p3) { EntityTypeInfo entityTypeInfo; if (!this.eventInfo.TryGetValue(disposer.GetType(), out entityTypeInfo)) { return; } entityTypeInfo.Get(EntityEventType.Awake3)?.Run(disposer, p1, p2, p3); }
public void Awake(Disposer disposer) { EntityTypeInfo entityTypeInfo; if (!this.eventInfo.TryGetValue(disposer.GetType(), out entityTypeInfo)) { return; } entityTypeInfo.Get(EntityEventType.Awake)?.Run(disposer); }
public void Remove(Disposer disposer) { this.removeDisposers.Add(disposer); }
public void Add(Disposer disposer) { this.addDisposers.Add(disposer); }