Skip to content

Configuration

Maurits edited this page Sep 10, 2017 · 1 revision

On top of the dist/simploo.lua file are a bunch of configuration variables that you can change.

Production Mode

This setting disables non essential parts simploo in order to improve performance on production environments. This will bypass sanity and safety checks so don't enable it during development.

Default: false

simploo.config["production"] = false

Expose Syntax

Expose all syntax related functions as globals instead of having to call simploo.syntax. explicitly.

You can also manually enable or disable the simploo syntax globals in sections of your code by calling simploo.syntax.init() and simploo.syntax.destroy().

Default: true

simploo.config["exposeSyntax"] = true

Class Hotswapping

When defining a class a 2nd time you can automatically update all the earlier instances of a class with newly added members.

This setting will slightly increase class instantiation time and memory consumption.

Default: false

simploo.config["classHotswap"] = false

Clone this wiki locally