Commit Graph

20 Commits

Author SHA1 Message Date
Linden
4ae20d4dad refactor(imports/callback): new syntax
BREAKING!
2022-02-28 17:17:05 +11:00
Linden
aeccbece09 refactor: rename imports
BREAKING!
Since the folder name determines the import name (i.e. lib.callbacks), use better names and lowerCamelCase.
2022-02-28 16:30:58 +11:00
Linden
02ba40124e feat(commands): chat suggestions 2022-02-28 08:09:03 +11:00
Linden
72575c90ee refactor(callbacks): remove the cb argument
BREAKING CHANGE: Registered callbacks now return values rather than sending them as a callback.

Previously the cb needed to be called to return to the client, now it will happen once the function closes. i.e.

cb(string, string, false) -> return string, string, false
2022-01-01 20:43:06 +11:00
Linden
2084897785 refactor(callbacks): randomise event callback and fix timer logic
Prevent any possibility of listening for server callback or conflicting event handlers on the client.
2022-01-01 02:26:42 +11:00
Linden
b8ad392692 feat(commands): add a RegisterCommand wrapper 2021-12-30 02:25:29 +11:00
Linden
ec1a98b83a feat(keys): implement a DisableControlAction wrapper 2021-12-06 09:54:45 +11:00
Linden
31404fbfce Revert "feat(mysql): add imports for oxmysql"
This reverts commit 2426a768a4.
2021-12-04 22:19:42 +11:00
Linden
e9f64c53e6 feat(table): add recursive clone function
table.clone creates a soft copy of an existing table (any tables inside the table will still be references).

This sets up a basic loop to clone any tables within a table and create deep copies.
2021-11-22 08:55:43 +11:00
Linden
7c41ac5d6e refactor(table): revert to old match function
Going to need some work to accurately compare some table types, but this is better for the intended purpose.
2021-11-14 03:43:06 +11:00
Linden
6aede19f4e fix(table): correctly check if table contains value for non-tables
Only strings were allowed through this initial check, but we want non-table values to check if v = value.
2021-11-14 01:42:36 +11:00
Linden
5a925695bc refactor(table): change match to matches 2021-11-12 10:26:49 +11:00
Linden
901cb381b4 feat(table): add functions to the standard table lib
Can overwrite the default table functions with `table = import 'table'`, adding functions to check if value(s) exist or match a table.
2021-11-12 10:16:16 +11:00
Linden
a1d3dd31a3 chore: update information 2021-11-11 18:23:07 +11:00
Linden
2426a768a4 feat(mysql): add imports for oxmysql
Similar to the mysql-async style library included with oxmysql., but without the aliases.
2021-11-11 18:18:17 +11:00
Linden
827ce1a223 chore: readme 2021-11-11 08:18:06 +11:00
Linden
9a60f3bd1d chore(callbacks): update annotations 2021-11-11 07:56:15 +11:00
Linden
ab4807fee0 refactor: remove modules system and fix indentation
Setting a "standard" module and resource structure is too limiting, so stick to import only.
2021-11-11 07:52:38 +11:00
Linden
7b3062f6e1 fix(callbacks): Resolve promise arguments 2021-10-30 16:18:42 +11:00
Linden
bc5c7ad209 Add files via upload 2021-10-30 15:58:25 +11:00