Comments (1)
Informations should contains world information.
A world contains each of those part: resources, entities and systems.
A resource contains a type and a data.
A entities contains an ID and a list of components.
A component contains a type and a data.
A system contains a type and a state.
The way to perform a good world image in this ECS should be this way:
- 4 control bytes (such as magic number)
- (1 byte for now) 2 bits to know which element follow (resources description: 00, entities descriptions: 01, systems descriptions: 10)
- 00 [
- 1 byte to know the number of resources (0-256)
- [
- (1 byte for now) X bits to fit resource different type count, which describe the type
- 1 byte for the size of resource data in bytes
- Y bytes of data
]
]
- 01 [
- 16 bits to know the number of entities (0-65 535)
- [
- 16 bits to know entity ID
- 8 bits to know the number of components
- [
- X bits to fit component different type count, which describe the type
- 8 bits for the size of resource data in bytes
- Y bytes of data
]
]
]
- 10 [
- 8 bits to know the number of systems (0-256)
- [
- X bits to fit system different type count, which describe the type
- 1 bit to know if it is active or not
]
]
from ecs.
Related Issues (8)
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 ecs.