Skip to main content
Deno 2 is finally here 🎉️
Learn more
class BundleLoader
import { BundleLoader } from "https://deno.land/x/sptaki@1.2.0/loaders/BundleLoader.d.ts";

Constructors

new
BundleLoader(
httpServerHelper: HttpServerHelper,
vfs: VFS,
jsonUtil: JsonUtil,
bundleHashCacheService: BundleHashCacheService,
)

Properties

protected
bundleHashCacheService: BundleHashCacheService
protected
bundles: Record<string, BundleInfo>
protected
httpServerHelper: HttpServerHelper
protected
jsonUtil: JsonUtil
protected
vfs: VFS

Methods

addBundle(key: string, b: BundleInfo): void
addBundles(modpath: string): void
getBundle(key: string): BundleInfo

Handle singleplayer/bundles