bzr branch
http://gegoxaren.bato24.eu/bzr/%2Bjunk/vala-bit-field
2
by Gustav Hartvigsson
* encountered a bug in Valac: |
1 |
/*
|
2 |
* The basic concept of a bitmap is to provide some kind of siple storrage of |
|
3 |
* information, that should not take too much space. |
|
4 |
* |
|
5 |
* The basic way of doing this is using something like uint8 or uint16, |
|
6 |
* which provides us with up to 8 and 16 fields respectivly, with the simplest |
|
7 |
* field being 1 bit, up to the one-field type having the full 8bit (256 value) |
|
8 |
* or 16bit (65535 value) to work with in one field. |
|
9 |
* |
|
10 |
* When defining a bitmap type you need to consider what fields you need, how |
|
11 |
* many values each feald sholud have and how they corrolate to your data. |
|
12 |
* |
|
13 |
* Lits take the examlpe of a simple game map, where you have information like |
|
14 |
* if a tile is travelsable or if only cetain |
|
15 |
* |
|
16 |
*/ |