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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
export {
REPLICATION_PROTOCOL_VERSION,
REPLICATION_CHANNEL,
ReplMsg,
type ReplComponentSchema,
type ReplHelloRequest,
type ReplHelloResponse,
type ReplSpawnEntity,
type ReplSpawnBatch,
type ReplDespawnBatch,
type ReplComponentRemoveBatch,
type ReplInputMsg,
type ReplAckMsg,
} from './protocol';
export {
buildReplicationTable,
tableSchemas,
shapeSignature,
diffSchemas,
encodeValue,
decodeValue,
cloneValue,
decodeStateFrame,
ByteWriter,
ByteReader,
FrameWriter,
type FieldShape,
type ReplicationTable,
type ReplicationTableEntry,
type EntityRefMap,
type StateEntry,
type StateFrame,
} from './codec';
export { Replicated, NetGhost, type ReplicatedData } from './components';
export {
radiusInterest,
radiusInterestProvider,
type InterestPolicy,
type InterestView,
type InterestProvider,
type InterestProviderPrepareView,
type InterestProviderQueryView,
type PreparedInterest,
type RadiusInterestOptions,
type InterestPoint,
} from './interest';
export { registerReplicationArchetype, type ReplicationArchetype } from './archetype';
export { NetIds } from './NetIds';
export { ReplicationServer } from './server';
export {
ReplicationClient,
predictionReplays,
type ReplicationClientOptions,
type PredictionOptions,
type PredictionSmoothing,
} from './client';
export { lerpValue, InterpolationState, ComponentBuffer } from './interpolation';
export {
ReplicationPlugin,
replicationPlugin,
NetSession,
Net,
type NetRoleKind,
} from './ReplicationPlugin';
// The channel and the transports a game drives replication over: they chunk
// with the protocol, so this is where a package pays for them.
export {
NetChannel,
type NetChannelOptions, type MessageHandler, type RequestHandler, type BinaryHandler,
} from '../NetChannel';
export { MemoryTransport, createMemoryTransportPair } from '../MemoryTransport';
export { MessagePortTransport, type MessagePortLike } from '../MessagePortTransport';