Comments (2)
I don't think the Bag is for general use. It appears that the index is heavily
tied to Entity#getId() and ComponentType#getIndex().
Or in other words, if you do want to use Bag you will have to keep track of
your own indices.
Original comment by [email protected]
on 12 Nov 2012 at 9:06
from artemis-framework.
If you really want to discourage the use of Bag as anything other than a
read-only container you could move it from com.artemis.utils to com.artemis and
make #set a package private method (either 'protected' or the default modifier).
Original comment by [email protected]
on 12 Nov 2012 at 9:13
from artemis-framework.
Related Issues (11)
- Entity getComponents bug HOT 1
- Ordered Bag Implementation? HOT 2
- String comparison in GroupManager
- Naming conventions for Aspects
- Support component mappers with @Mapper in super classes
- Bag.set always resets Bag.size to the last set item's position
- ImmutableBag should extend Iterable HOT 1
- Aspect checking for oneSet seems to be broken.
- Components removed from ComponentMapper before remove() is invoked HOT 3
- Thread-safety issue in com.artemis.EntitySystem.SystemIndexManager
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artemis-framework.