Catspeak Reference


enum CatspeakPreset

enum CatspeakPreset { 
  TYPE,
  ARRAY,
  STRUCT,
  STRING,
  MATH,
  MATH_3D,
  COLOUR,
  DRAW,
  RANDOM,
  UNSAFE,
  // 1 fields omitted
}
🔬 This is an experimental feature. It may change at any moment.

Represents the set of environment presets understood by Catspeak. When used with setPreset, this enum determines what GML functions, constants, and keywords get exposed.

§ TYPE

TYPE

Exposes safe type checking and type conversion functions.

§ ARRAY

ARRAY

Exposes safe array functions.

§ STRUCT

STRUCT

Exposes safe struct functions.

§ STRING

STRING

Exposes safe string functions.

§ MATH

MATH

Exposes safe mathematical and statistical functions.

§ MATH_3D

MATH_3D

Exposes safe 3D functions.

§ COLOUR

COLOUR

Exposes safe colour functions and constants.

§ DRAW

DRAW

Exposes safe drawing functions.

§ RANDOM

RANDOM

Exposes safe randomisation functions.

§ UNSAFE

UNSAFE

Exposes unsafe reflection and debug functions. Use this preset with extreme caution, because all bets are off.