Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Importing Classes

Mackery edited this page Jan 29, 2023 · 1 revision

Importin' Stuff

Importing classes is simple to do and it's helpful in some situations

Example

You want to check if the game isn't in the low-quality mode so you don't lag people's computers out so you do

if (ClientPrefs.quality != 'Low')
{
...

But that won't work.

How to

you have to import ClientPrefs at the start of your script (hx file)

import handlers.ClientPrefs

after you do that you can now use variables in ClientPrefs!

You can do it with other things too (files for example import handlers.Files)

Clone this wiki locally