feat(server): add experimental JS/TS mod runtime, hooks, tuning list ops, and isolated mod storage
This commit is contained in:
1 parent
fd9d25d346
commit
aa7a6e7d02
14 files changed
+743
-61
No files matched your search
@@ -6,9 +6,14 @@
|
||||
* `bundles/guid` registers a GUID for its id, so the build must register every pack this server
|
||||
* will sell from the same data folder.
|
||||
*/
|
||||
import type { DiscoveredMod } from '@wto/mods';
|
||||
import { tuningFiles } from '../tuning/tuning-loader.ts';
|
||||
import { readStoreTuning } from './store-tuning.ts';
|
||||
|
||||
export function multiVehiclePackIds(dataFolder: string, report: (line: string) => void): string[] {
|
||||
return readStoreTuning(tuningFiles(dataFolder, report).read('store')).multiVehiclePacks.map((pack) => pack.id);
|
||||
export function multiVehiclePackIds(
|
||||
dataFolder: string,
|
||||
report: (line: string) => void,
|
||||
mods: readonly DiscoveredMod[] = [],
|
||||
): string[] {
|
||||
return readStoreTuning(tuningFiles(dataFolder, report, undefined, mods).read('store')).multiVehiclePacks.map((pack) => pack.id);
|
||||
}
|
||||
Reference in new issue
Block a user