Skip to content
qqtnn edited this page Jun 1, 2024 · 1 revision

Enums Class Documentation

Overview

Enums are a handy way to make your code cleaner and more understandable. They're like a set of signposts, guiding you through various options and settings with clear, meaningful names instead of just numbers or arbitrary values.

Button Click

button_click Enum representing different types of button clicks, often used in conjunction with button callbacks.

  • lmb: Left mouse button click.
  • rmb: Right mouse button click.
  • none: No button click.

Note

Useful for handling different mouse interactions, particularly in key press and release scenarios. Example: local click_type = button_click.lmb

Spell Geometry

spell_geometry Defines the shape of a spell's area, aligning with spell_data.

  • rectangular
  • circular

Note

Helps specify the geometric area of a spell's effect, whether it's a wide rectangle or a spreading circle.

Targeting Type

targeting_type Details the targeting mechanism of spells, also found in spell_data.

  • skillshot
  • targeted

Note

Differentiates between direct targeting spells and skillshots that require precise aiming or prediction.

Orbwalker Mode

orb_mode Enumerates the various modes of an orbwalker, as utilized in the Orbwalker module.

  • none: No specific mode.
  • pvp: Player versus player combat mode.
  • clear: Clearing waves or camps.
  • flee: Escaping or avoiding combat.

Note

Essential for defining the behavior of the orbwalker, guiding how your character moves and attacks in different scenarios.

Clone this wiki locally