User Tools

Site Tools


scripting:datatypes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:datatypes [2022/08/09 14:15] jerryhopperscripting:datatypes [2022/08/25 14:30] (current) jerryhopper
Line 14: Line 14:
   * Boolean   * Boolean
  
 +====== Datatypes in Enfusion ======
  
 ===== void ===== ===== void =====
Line 19: Line 20:
 void data type. A data type that has no values or operators and is used to represent nothing. void data type. A data type that has no values or operators and is used to represent nothing.
  
 +
 +===== string =====
 +
 +In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. 
 +
 +Example:
 +  string greeting = "Hello"
 ===== int ===== ===== int =====
  
 The INTEGER data type stores whole numbers that range from -2,147,483,647 to 2,147,483,647 for 9 or 10 digits of precision. The INTEGER data type stores whole numbers that range from -2,147,483,647 to 2,147,483,647 for 9 or 10 digits of precision.
  
 +Example:
 +
 +  int counter = 1
 ===== float ===== ===== float =====
  
Line 30: Line 41:
  
  
 +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, with their storage being handled automatically by the container.
 +
 +Example:
 +  vector direction = {0,0,1};
 +  
 +===== RestContext  =====
 +
 +returned data from a httpREST request.  See: [[scripting:restapi]]
 +
 +  
 +===== GameMaterial ===== 
 +
 +
 +===== IEntity ===== 
  
 +represents a entity.
scripting/datatypes.1660050903.txt.gz · Last modified: 2022/08/09 14:15 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki