Commit Graph

6 Commits

Author SHA1 Message Date
Linden
26538b8148 refactor(imports): assign modules directly to lib namespace
Mostly a change for improved intellisense with sumneko lua.
Includes some type fixes and deprecation notices.
2022-09-14 01:20:50 +10: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