Example #1
0
        public Entity(int id, IComponentRepository componentRepository)
        {
            Id = id;
            ComponentRepository = componentRepository;
            componentRepository.ExpandDatabaseIfNeeded(id);

            _onComponentsAdded    = new Subject <int[]>();
            _onComponentsRemoving = new Subject <int[]>();
            _onComponentsRemoved  = new Subject <int[]>();
        }