scripting:datatypes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:datatypes [2022/08/09 14:06] – jerryhopper | scripting:datatypes [2022/08/25 14:30] (current) – jerryhopper | ||
---|---|---|---|
Line 14: | Line 14: | ||
* Boolean | * Boolean | ||
+ | ====== Datatypes in Enfusion ====== | ||
+ | ===== void ===== | ||
+ | |||
+ | void data type. A data type that has no values or operators and is used to represent nothing. | ||
+ | |||
+ | |||
+ | ===== string ===== | ||
+ | |||
+ | In computer programming, | ||
+ | |||
+ | Example: | ||
+ | string greeting = " | ||
===== int ===== | ===== int ===== | ||
+ | The INTEGER data type stores whole numbers that range from -2, | ||
+ | |||
+ | Example: | ||
+ | |||
+ | int counter = 1 | ||
===== float ===== | ===== float ===== | ||
+ | In computer science, a float is a data type composed of a number that is not an integer, because it includes a fraction represented in decimal format. | ||
+ | |||
+ | The FLOAT data type stores double-precision floating-point numbers with up to 17 significant digits. FLOAT corresponds to IEEE 4-byte floating-point, | ||
+ | |||
+ | |||
+ | float speed = 1.12346 | ||
+ | ===== vector ===== | ||
+ | |||
+ | Vectors are sequence containers representing arrays that can change in size. | ||
+ | |||
+ | Just like arrays, vectors use contiguous storage locations for their elements, which means that their elements can also be accessed using offsets on regular pointers to its elements, and just as efficiently as in arrays. But unlike arrays, their size can change dynamically, | ||
+ | |||
+ | Example: | ||
+ | vector direction = {0,0,1}; | ||
+ | | ||
+ | ===== RestContext | ||
+ | |||
+ | returned data from a httpREST request. | ||
+ | |||
+ | | ||
+ | ===== GameMaterial ===== | ||
+ | |||
+ | |||
+ | ===== IEntity ===== | ||
+ | |||
+ | represents a entity. |
scripting/datatypes.1660050406.txt.gz · Last modified: 2022/08/09 14:06 by jerryhopper