UNPKG

k4-utils

Version:

This node package contains a collection of useful functions for working with the SPT framework. Whether you're a seasoned developer or just starting out, these tools will help you get the job done faster and more efficiently. With a focus on simplicity an

29 lines (26 loc) 1.59 kB
/** Declaration file generated by dts-gen */ export let database : any; declare function get_name(ID: string, mode?: number, Language?: string): string; declare function get_short_name(ID: string, mode?: number, Language?: string): string; declare function get_description(ID: string, mode?: number, Language?: string): string; declare function get_all_ids(): Array[]; declare function find_most_similar(mainString: string, stringArray: Array[]): string; declare function get_handbook_price(ID: string): number; declare function get_flea_price(ID: string): number; declare function get_parent(ID: string): string; declare function arrayID_to_name(array: Array[]): Array[]; declare function get_items_with_parent(ID: string): Array[]; declare function has_props(ID: string): boolean; declare function get_date_from_id(ID: string): string; declare function get_all_ids_names(): Array[]; declare function crash(): void; declare function isRequired(ID:string, SlotID:string): boolean; declare function get_item(ID:string): any; declare function get_all_ids_names_from_locale(Language?: string): Array[]; declare function get_id_from_locale_name(name: string, Language?: string): string; declare function levenshteinDistance(a: string, b: string): number; declare function search_by_name(name: string): Array[]; declare function get_trader_buy_coefficients(): Array[]; declare function can_trader_buy(ID : string,TraderID : string): boolean; declare function get_trader_by_name(name : string): string; declare function get_handbook_parent(ID : string): string;