This commit is contained in:
2021-06-27 20:27:03 -05:00
commit cbd4520e12
42 changed files with 1836 additions and 0 deletions

25
RAGE/Utils.d.ts vendored Normal file
View File

@@ -0,0 +1,25 @@
/**
* Utils Functions
* @public
* @noSelf
*/
declare namespace utils {
function str_to_vk(keyName: string): int
//function string_to_wstring(str: string): wstring
//function wstring_to_string(str: wstring): string
function get_all_files_in_directory(path: string, extension: string): vector<string>
function get_all_sub_directories_in_directory(path: string): vector<string>
function file_exists(path: string): boolean
function dir_exists(path: string): boolean
function make_dir(path: string): boolean
function get_appdata_path(dir: string, file: string): string
function from_clipboard(): string
function to_clipboard(str: string): void
function time(): int
function time_ms(): int
function str_to_vecu64(str: string): vector<uint64_t>
function vecu64_to_str(vec: vector<uint64_t>): string
}