示例#1
0
        public EcsWorld(EcsStoreService ecsStoreService)
        {
            _ecsStoreService = ecsStoreService;

            Services        = new Dictionary <Type, BaseEcsService>();
            _initServices   = new HashSet <IEcsInitService>();
            _updateServices = new HashSet <IEcsUpdateService>();
            _finishServices = new HashSet <IEcsDestroyService>();
        }
示例#2
0
        public void SetUp()
        {
            _ecsStore        = new EcsStore();
            _ecsStoreService = new EcsStoreService(_ecsStore);
            _ecsWorld        = new EcsWorld(_ecsStoreService);

            StaticStore.CountOfDestroy = 0;
            StaticStore.CountOfInit    = 0;
            StaticStore.CountOfUpdate  = 0;
        }
示例#3
0
 public TestService2(EcsStoreService storeService) : base(storeService)
 {
 }
 public TestService3UpdateInitFinish(EcsStoreService storeService) : base(storeService)
 {
 }
示例#5
0
 public void SetUp()
 {
     _ecsStore        = new EcsStore();
     _ecsStoreService = new EcsStoreService(_ecsStore);
 }
示例#6
0
 protected BaseEcsService(EcsStoreService storeService)
 {
     StoreService = storeService;
 }