114 lines
2.9 KiB
TypeScript
114 lines
2.9 KiB
TypeScript
export { FixedStepClock, type FixedStepClockOptions } from "./clock.js";
|
|
export { deterministicHash } from "./deterministic-hash.js";
|
|
export { PredictedEngine } from "./client.js";
|
|
export {
|
|
defineGame,
|
|
type DefinedGame,
|
|
} from "./define-game.js";
|
|
export {
|
|
defineNetworkedGame,
|
|
type DefinedNetworkedGame,
|
|
} from "./define-networked-game.js";
|
|
export {
|
|
defineMultiplayerGame,
|
|
type MultiplayerGameConfiguration,
|
|
type MultiplayerGameContract,
|
|
} from "./define-multiplayer-game.js";
|
|
export {
|
|
createJsonCodec,
|
|
type JsonCodecOptions,
|
|
} from "./json-codec.js";
|
|
export {
|
|
withLagCompensation,
|
|
type LagCompensatedAction,
|
|
type LagCompensationActionPolicy,
|
|
type LagCompensationDefinition,
|
|
type LagCompensationMode,
|
|
type LagCompensationPolicies,
|
|
type LagCompensationResolutionContext,
|
|
} from "./lag-compensation.js";
|
|
export { NetworkedPredictedEngine } from "./networked-client.js";
|
|
export {
|
|
NetworkedAuthoritativeEngine,
|
|
type NetworkedServerStepResult,
|
|
type NetworkedSimulationCheckpoint,
|
|
} from "./networked-server.js";
|
|
export type {
|
|
ClientEventContext,
|
|
ClientSimulationRules,
|
|
EmittingInputContext,
|
|
EmittingPlayerContext,
|
|
EmittingTickContext,
|
|
NetworkedGameDefinition,
|
|
ReplicationRules,
|
|
ServerSimulationRules,
|
|
SnapshotBatch,
|
|
} from "./networked-types.js";
|
|
export { NetworkClock, type NetworkStats } from "./network-clock.js";
|
|
export {
|
|
createBinaryProtocol,
|
|
type BinaryProtocol,
|
|
type ClientWireMessage,
|
|
type ServerWireMessage,
|
|
} from "./protocol.js";
|
|
export {
|
|
ReplayTransportAuthoritativeEngine,
|
|
withReplayTransport,
|
|
type ProjectedReplayFrame,
|
|
type ReplayAuthorizationContext,
|
|
type ReplayTicket,
|
|
type ReplayTicketPlan,
|
|
type ReplayTransportDefinition,
|
|
type ReplayTransportNetworkedGame,
|
|
type ReplayTriggerContext,
|
|
} from "./replay-transport.js";
|
|
export {
|
|
AuthoritativeEngine,
|
|
type Acknowledgement,
|
|
type InputDecision,
|
|
type ServerEngineOptions,
|
|
type ServerStepResult,
|
|
} from "./server.js";
|
|
export {
|
|
SpatialGridIndex,
|
|
withSpatialReplication,
|
|
type SpatialPoint,
|
|
type SpatialReplicationController,
|
|
type SpatialReplicationDefinition,
|
|
type SpatialReplicationEntity,
|
|
type SpatialReplicationSelection,
|
|
type SpatialReplicationSource,
|
|
type SpatialReplicationViewerContext,
|
|
type SpatiallyReplicatedNetworkedGame,
|
|
} from "./spatial-replication.js";
|
|
export {
|
|
ReplayDivergenceError,
|
|
ReplaySession,
|
|
TimeTravelAuthoritativeEngine,
|
|
withTimeTravel,
|
|
type ReplayCheckpoint,
|
|
type ReplayCommand,
|
|
type ReplayFrame,
|
|
type ReplayRecording,
|
|
type ReplayStateHash,
|
|
type ReplayVerification,
|
|
type TimeTravelDefinition,
|
|
type TimeTravelNetworkedGame,
|
|
type TimeTravelServerOptions,
|
|
} from "./time-travel.js";
|
|
export type {
|
|
BinaryCodec,
|
|
ClientStateContext,
|
|
ClientStateReport,
|
|
GameDefinition,
|
|
InputContext,
|
|
InputPacket,
|
|
PingPacket,
|
|
PlayerContext,
|
|
PlayerId,
|
|
PongPacket,
|
|
StateSnapshot,
|
|
TickContext,
|
|
ValidationResult,
|
|
} from "./types.js";
|