Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

3.4 KB
Raw Blame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
export { resolveDocumentRef } from './documentRef';
export {
    type AddressableAssetType,
    type AddressableManifest,
    type AddressableManifestGroup,
    type AddressableManifestAsset,
    type BundleMode,
    BUNDLE_MODES,
    normalizeBundleMode,
    deriveManifestRevision,
    ManifestModel,
} from './AddressableManifest';
export { diffManifests, type UpdatePlan, type AssetChange } from './hotUpdate';
export type { ContentCacheReport, ContentCacheEntry, CacheCleanupPreview, CacheCleanupResult } from '../platform/contentCache';
export {
    resolveAssetGroup,
    activeRemoteRoot,
    modeToDelivery,
    folderGroupMode,
    withFolderGroup,
    folderAlwaysInclude,
    withFolderAlwaysInclude,
    withActiveRemoteRoot,
    ASSET_GROUP_MODES,
    type AssetGroupMode,
    type AssetGroupDef,
    type BuildProfile,
    type AssetGroupsConfig,
    type ResolvedAssetGroup,
    resolveAtlas,
    type AtlasDef,
    type ResolvedAtlas,
} from './assetGroups';
export { xxh64, contentHashHex, contentHashOf } from './contentHash';
export { AsyncCache } from './AsyncCache';
export { textureImportSettingsFrom, type ParsedTextureImportSettings } from './textureImportSettings';
export { spineCullingContractFrom, spineManifestContractFrom } from './spineImportSettings';
export type { SpineCullingRect, SpineCullingContract, SpineManifestContract } from './spineImportSettings';
export { Assets, AssetPlugin, assetPlugin, type AssetsData } from './AssetPlugin';
export { decodeImageBitmap, decodeImagePixels, imageBitmapOptions, type DecodedPixels, fetchDecodePixels } from './imageDecode';
export { AssetRefCounter, type AssetRefInfo } from './AssetRefCounter';

export { Assets as AssetsImpl, type AssetsOptions, type AssetBundle, type SceneAssetResult, type MissingAsset, type CheckForUpdateOptions, type ApplyUpdateResult, type UpdateStages, type UpdateStatus, type AssetDownloadFailure, type InvalidateListener, type AssetInvalidation } from './Assets';
export { type Backend, HttpBackend, EmbeddedBackend, type HttpBackendOptions } from './Backend';
export { Catalog, atlasCatalogFields, type CatalogData, type CatalogEntry, type AtlasFrameInfo, type CookedAtlasInfo } from './Catalog';
export {
    AssetRegistry,
    UUID_REF_PREFIX,
    UUID_V4_REGEX,
    isUuidRef,
    extractUuid,
    makeUuidRef,
    type AssetEntry,
    type AssetManifest,
} from './AssetRegistry';
export { type AssetLoader, type LoadContext, type TextureResult, type TextureResult as TextureInfo, type SpineResult, type SpineLoadResult, type MaterialResult, type FontResult, type AudioResult, type LocaleResult, type JsonResult } from './AssetLoader';
export { TextureLoader, type TextureImportSettings, type TextureImportSettingsResolver } from './loaders/TextureLoader';
export { SceneHandle } from './SceneHandle';

// A texture's compression is decided twice — the build picks a payload, the
// device decides what it becomes. This is the second half; the first is the
// cook's own record, in the manifest entry it wrote.
export {
    CompressedTextureFormat,
    compressedUploadDecision,
    RAW_PAYLOAD_UPLOAD,
    type TextureUploadDecision,
    type TextureUploadReason,
    type UploadedGpuFormat,
} from './compressed';
export { textureFormatOf } from './textureFormatReport';
export type { TextureFormatReport, TextureFormatRecord } from './textureFormatReport';