Files
sfall/docs/data-types.md
T

22 lines
657 B
Markdown
Raw Normal View History

2021-02-24 15:40:24 +07:00
---
title: Data types
nav_order: 2
permalink: /data-types/
---
# Data types
{: .no_toc}
Data types mentioned in this document
* `array` - array ID to be used with array-related functions (actually an integer)
* `any` - any type
* `bool` - boolean (in fact, `int`: `True` is 1 and `False` is 0)
* `int` - integer number
* `mixed` - type depends on exact use case
* `float` - floating point number
* `ObjectPtr` - pointer to a game object (actually an integer)
* `proc` - procedure name (used in [register_hook_proc]({{ site.baseurl }}/hook-functions/#register_hook_proc))
* `string` - string (text) value
* `void` - means opcode does not return any value