Inheritance: Object, IDisposable
Beispiel #1
0
 public void Add(Disposer disposer)
 {
     this.addDisposers.Add(disposer);
 }
Beispiel #2
0
 public void Remove(Disposer disposer)
 {
     this.removeDisposers.Add(disposer);
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 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);
        }
Beispiel #7
0
 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);
		}