import { Connection, ZSPacket } from ".."; import type { ZSEvent, ZSInit, ZSWorldAction } from "../packets"; import { Blocks } from "./Blocks"; import { EEPhysics } from "../physics/EEPhysics"; import { Players } from "./Players"; import TileRegistration from "../tiles/TileRegistration"; export declare const EE_TPS = 100; /** * A `Game` is a class that handles running a Smiley Face Game world. This is the * same code that gets used on the client. This is great news for developers, as now * bots that depend upon in game physics may be more common. */ export declare class Game { readonly tiles: TileRegistration; readonly players: Players; readonly blocks: Blocks; readonly physics: EEPhysics; worldTitle: string; constructor(connection: Connection); constructor(tiles: TileRegistration, init: ZSInit); constructor(tiles: TileRegistration, players: Players, blocks: Blocks, physics: EEPhysics); update(elapsedMs: number): void; tick(): void; handleEvent(event: ZSPacket): 0; handleWorldAction({ action }: ZSWorldAction): 0; handleServerEvent({ event }: ZSEvent): 0; }