data-types
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
data-types [2020/01/23 13:38] – created maxime | data-types [2020/07/07 15:32] – maxime | ||
---|---|---|---|
Line 146: | Line 146: | ||
| //'' | | //'' | ||
+ | ---- | ||
+ | |||
+ | ==== bitfield ==== | ||
+ | |||
+ | A bitfield is a dictionary with enumeration values of a specific type as keys, and boolean values as value. | ||
+ | |||
+ | When defining a new object, a enumeration value missing from a bitfield table will be considered as false. When [[: | ||
+ | |||
+ | To initialize a bitfield of [[api: | ||
+ | <file lua> | ||
+ | local bitfield = { | ||
+ | DEFAULT = true, | ||
+ | NAVIGABLE = false, | ||
+ | GRASS_CLEAR = true | ||
+ | } | ||
+ | </ |
data-types.txt · Last modified: 2023/09/14 14:52 by polymorphgames