Hatch Game Engine Documentation v1.4.0
The documentation for the Hatch Game Engine
Loading...
Searching...
No Matches
Map Class Reference

An associative array, also known as a dictionary, or a map. More...

Public Member Functions

integer Length ()
 Get the number of items in the map.
array GetKeys ()
 Gets a list of all keys in the map.
void Remove (string key)
 Removes a key from the map.
 Map ()
 Creates a map.

Detailed Description

An associative array, also known as a dictionary, or a map.

Member Function Documentation

◆ GetKeys()

array Map.GetKeys ( )

Gets a list of all keys in the map.

Returns
Returns an array of strings.

◆ Length()

integer Map.Length ( )

Get the number of items in the map.

Returns
Returns an integer value.

◆ Remove()

void Map.Remove ( string key)

Removes a key from the map.

Parameters
keyThe key to remove.